Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9408b608acef357cad9e03da6d5878910a93afaf
Ticket: 3485833fffffffffffffffffffffffffffffffff
trace - inexplicable large overhead by ensemble commands
User & Date: sebres on 2012-02-09 02:28:01
Changes

  1. icomment:
    > Don: original release 8.5.11
    
    What is funny - but even tcl proc is "in trace" faster than "ensemble":
    %
    if {[info command ::org_string] == {}} {
      rename ::string ::org_string
      proc ::string {args} {{*}[lreplace $args 0 0 "::tcl::string::[lindex $args 0]"]}
    }
    .... the same test code ....
    %
    
    The result is :
    ok
    --- string range ----
    2.04 microseconds per iteration
    7.8 microseconds per iteration
    --- string first ----
    1.87 microseconds per iteration
    7.8 microseconds per iteration
    --- string length ---
    0.32 microseconds per iteration
    6.2 microseconds per iteration
    --- test ------------
    3.1 microseconds per iteration
    1.6 microseconds per iteration
    
    
    
  2. login: "sebres"
  3. mimetype: "text/plain"
  4. username: "sebres"