Artifacts Associated With Ticket 453709ffff
Ticket change [ac47a82334] (rid 101265) by msofer on 2001-08-21 12:54:27:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This patch modifies the use of ExceptionRange by the compiler/engine in two ways: - moves the computation of the ending offset of the range to compile time (instead of runtime) - exploits the order in which nested exception ranges are stored to reduce the number of runtime comparisons - it traverses the list of exception ranges in reverse order, thus insuring that the deepest range is found first.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "optimize ExceptionRange lookups"
- type initialized to: "Patch"
Ticket change [cac22902a9] (rid 95418) by msofer on 2001-08-21 19:54:28:
- icomment:
File Added - 9785: except.diff
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "except.diff" [ffab1fe684] (rid 108791) by msofer on 2001-08-21 19:54:28.
Ticket change [ba4058ac2b] (rid 129294) by msofer on 2001-08-21 22:30:28:
- closedate changed to: "2001-08-21T15:30:28"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 The speed effect of the patch seems to be negative ...
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "1 Zero"
- status changed to: "Pending"
- username: "msofer"
Ticket change [e8ccdb471c] (rid 104707) by msofer on 2001-08-22 01:13:25:
- closedate changed to: "2001-08-21T18:13:25"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 The speed effect is just about nil (but positive); even so, I still like it: it looks cleaner to my eyes. OTOH, it may break tclPro's compiled bytecodes. Better leave that alone for now.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Postponed"
- status changed to: "Closed"
- username: "msofer"
Add attachment "newRange.diff" [3060dc659c] (rid 93245) by msofer on 2002-03-06 21:44:36.
Ticket change [f06abf278c] (rid 109193) by msofer on 2002-03-06 21:44:36:
- assignee changed to: "hobbs"
- icomment:
File Added - 18891: newRange.diff Logged In: YES user_id=148712 New patch: this one does only modifies the runtime lookup algorithm, but does not touch the compiler. Checking with Jeff if .tbc code will not be broken, i.e., if it satisfies the assumption: "nested ranges are always *after* their containing ranges" The gains are illustrated with tcllib patch #526404 (tclbench): TCL_INTERP: 1:8.4a4 2:8.4a4 STARTED 2002-03-06 11:38:10 (runbench.tcl v1.13) Benchmark 1:8.4a4 /CVS/tcl_SF_clean/unix/tclsh0 c 00:00:00 elapsed 126 milliseconds Benchmark 2:8.4a4 /CVS/tcl_SF_clean/unix/tclsh-newRange c 00:00:00 elapsed 105 milliseconds 000 VERSIONS: 1:8.4a4 2:8.4a4 001 CATCH error, complex 58 47 002 CATCH no catch used 3 3 003 CATCH return error 28 28 004 CATCH return ok 4 3 004 BENCHMARKS 1:8.4a4 2:8.4a4 FINISHED 2002-03-06 11:38:10
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- status changed to: "Open"
- username: "msofer"
Add attachment "newRange2.diff" [9619a2274a] (rid 106265) by msofer on 2002-03-07 06:06:40.
Ticket change [99733f7620] (rid 110798) by msofer on 2002-03-07 06:06:40:
- icomment:
File Added - 18927: newRange2.diff Logged In: YES user_id=148712 Improved patch, modifying also some ExceptionRange related tools in tclCompile.c. As a side effect, I applied the "loop rotation optimisation" to [foreach], eliminating one jump from the loop.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [dd03d84014] (rid 114586) by msofer on 2002-03-07 19:46:31:
- icomment:
Logged In: YES user_id=148712 I keep packing stuff in this patch ... The new newRangeNPeep.patch adds - peep-hole optimisation in INST_FOREACH4: avoids (creating, pushing, popping, testing, destroying) an object and saves executing an INST_JUMP_FALSE. - peep-hole optimisation in several instructions: avoids pushing an object that will be popped right away and saves executing an INST_POP. The first column is the patched version: 000 VERSIONS: 1:8.4a5 2:8.4a5 001 LOOP for (to 1000) 1328 1433 002 LOOP for, iterate list 1977 1993 003 LOOP for, iterate string 2631 2618 004 LOOP foreach, iterate list 872 1149 005 LOOP foreach, iterate string 1104 1385 006 LOOP while (to 1000) 1294 1427 007 LOOP while 1 (to 1000) 1005 1088 007 BENCHMARKS 1:8.4a5 2:8.4a5 Remark that this (and many other optimisations) would be simpler and more efficient if we settled on not being able to run older style bytecode, and providing a "translator" in tbcload. BTW, are the .tbc files versioned, or does proComp only use the 8.0 compiler avoiding the newer instructions?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [e3b36e9f01] (rid 87839) by msofer on 2002-03-07 19:46:32:
- icomment:
File Added - 18961: newRangeNPeep.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "newRangeNPeep.patch" [f9a3a4d948] (rid 91740) by msofer on 2002-03-07 19:46:32.
Ticket change [d84a2eb696] (rid 107409) by hobbs on 2002-06-20 05:42:40:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=72656 pushing this back to miguel due to the number of changes he has made to TEBC recently.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [cc729818d4] (rid 95700) by msofer on 2002-06-20 20:21:49:
- closedate changed to: "2002-06-20T13:21:49"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Most of these ideas are now in the HEAD
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "msofer"