|
2004-12-10
| ||
| 20:11 | • Closed ticket [1081779fff]: speed up proc calls, improve resolver logic plus... artifact: e0ced5ff9f user: msofer | |
| 20:11 | • Add attachment initlocals to ticket [1081779fff] artifact: a221235eb4 user: msofer | |
| 05:59 | • Ticket [1081779fff] speed up proc calls, improve resolver logic status still... artifact: 856c643af6 user: msofer | |
| 05:58 | • Ticket [1081779fff]: 4 changes artifact: 1ca451bdd3 user: msofer | |
| 05:58 | • Ticket [1081779fff]: 4 changes artifact: 5d5c5934d3 user: msofer | |
|
2004-12-09
| ||
| 08:00 | • Ticket [1081779fff]: 4 changes artifact: 170e95e65d user: msofer | |
| 08:00 | • Add attachment patch to ticket [1081779fff] artifact: 8ce8fc96fd user: msofer | |
| 01:00 | • New ticket [1081779fff] improve proc call when using resolvers. artifact: d011c70d6d user: msofer | |
speed up proc calls, improve resolver logic
Closed / Accepted1081779fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-09 01:00:24
When resolvers are defined, the function TclInitCompiledLocals marks every variable that has been found by them with VAR_RESOLVED. This flag avoids a new lookup until one of the relevant the resolver epochs changes. Variables that the resolvers did *not* find (ie, locals) remain unmarked. This means that the resolvers will look them up (and fail) at every proc invocation. If the resolvers do expensive lookups, this may slow down every proc call considerably. The attached patch marks every variable with VAR_RESOLVED, wether it was found or not - i.e., VAR_RESOLVED now means VAR_PROCESSED_BY_RESOLVERS. The patch should be tested with Itcl and Xotcl (the known resolver users) to insure that my analysis is coherent with their usage.
msoferplain2004-12-09 08:00:32
File Added - 111773: patch
msoferplain2004-12-10 05:58:23
Logged In: YES user_id=148712 New patch attached, with improved logic for TclInitCompiledLocals. This should speed up all Proc invocations, irespective of the presence of resolvers. Gustaf reports that the old patch is fine with xotcl, the new one should be fine too.
msoferplain2004-12-10 05:58:24
File Added - 111914: initlocals
msofer Ticket [1081779fff]: 1 change
[History diff]2004-12-10 05:59:26
msoferplain2004-12-10 20:11:29
File Deleted - 111914: File Added - 111978: initlocals Logged In: YES user_id=148712 Improved patch attached, committed to HEAD: optimised loops that initialise a proc's arguments and compiled local variables, removing tests from inner loops. Provides up to 10% speedup in some tclbench tests.
Log in (anonymous is fine) to add a comment.
Attachments:
- initlocals [download] added by msofer on 2004-12-10 20:11:29. [details]
- patch [download] added by msofer on 2004-12-09 08:00:27. [details]