Overview
| Artifact ID: | ecf42b45c3c30ea157613ec83bac064e06b94ccc |
|---|---|
| Ticket: | 3485833fffffffffffffffffffffffffffffffff
trace - inexplicable large overhead by ensemble commands |
| User & Date: | dgp on 2012-02-09 22:55:35 |
Changes
- icomment:
Further probing demonstrates the {string range ....} script is getting compiled only one time. It compiles to direct invocation of the string command procedure, which is NsEnsembleImplementationCmd, because "string" is implemented as an ensemble. This points to performance problems there. A possible alternative would be to have TclCompileEnsemble() compile to direct invocation of ::tcl::string::range instead. To go that way would required an examination of the epoch implications, since changes in any ensemble dispatch map would then have the potential to invalidate bytecode. (That may already be true). If we go that way, there may be refactoring opportunities in breaking out from TclCompileScript() the central engine that compiles a single command so that it could be called by TCE as well. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"