Overview
| Artifact ID: | 8e8d55827cbca79a891d78fdcd84895ff2cc4206 |
|---|---|
| Ticket: | 3485833fffffffffffffffffffffffffffffffff
trace - inexplicable large overhead by ensemble commands |
| User & Date: | sebres on 2012-02-10 18:36:20 |
Changes
- icomment:
In my tcl fork I have midified a some routines such Tcl_CreateEnsemble, Tcl_SetEnsembleSubcommandList, Tcl_SetEnsembleMappingDict etc. So after ensemble namespace and subcommands are created, the main ensemle command will be a "dummy" command without compileProc (TclCompileEnsemble), that simple forwards a first arg to corresponding command in ensemble namespace. I try later to create a patch for core-8-5-11... My performance now w/o tracing: --- string range ---- 0.62 microseconds per iteration 0.78 microseconds per iteration --- string first ---- 0.63 microseconds per iteration 0.78 microseconds per iteration --- string length --- 0.31 microseconds per iteration 0.16 microseconds per iteration Performance with tracing: --- string range ---- 2.16 microseconds per iteration 2.8 microseconds per iteration --- string first ---- 1.78 microseconds per iteration 1.8 microseconds per iteration --- string length --- 0.32 microseconds per iteration 0.32 microseconds per iteration By tclbench it seems to be equal. But strange is, that some my own test scripts running up to one-fifth faster as earlier.
- login: "sebres"
- mimetype: "text/plain"
- username: "sebres"