Overview
| Artifact ID: | 2507fe8c04414ca39c3df9427db9f87b0c8f4f8e |
|---|---|
| Ticket: | 458361ffffffffffffffffffffffffffffffffff
single word scripts get recompiled at each call |
| User & Date: | msofer on 2001-09-12 02:38:40 |
Changes
- icomment:
Logged In: YES user_id=148712 Remark that there are (with this one) four different execution paths in Tcl_EvalObjEx: (1) pure list optimisation (2) direct parse+eval (3) the new one for single-word commands (4) execute bytecodes Actually, the decr is only in the _no_error_ case; when there is an error result, execution falls through to the long Nr.4 path, which decr's objPtr at the end (after lable _done_). Side remark: wouldn't it be better if all 4 paths ended at the same spot, with the (faster) TclDecrRefCount(objPtr); return result; I illustrate this in patch Nr.3
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"