Skip to content
Tcl Source Code History Of Ticket 453709ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 453709ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 453709ffffffffffffffffffffffffffffffffff

  1. Ticket change [ac47a82334] (rid 101265) by msofer on 2001-08-21 12:54:27:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "optimize ExceptionRange lookups"
    11. type initialized to: "Patch"
  2. Ticket change [cac22902a9] (rid 95418) by msofer on 2001-08-21 19:54:28:

    1. icomment:
      
      
      File Added - 9785: except.diff
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Add attachment "except.diff" [ffab1fe684] (rid 108791) by msofer on 2001-08-21 19:54:28.

  4. Ticket change [ba4058ac2b] (rid 129294) by msofer on 2001-08-21 22:30:28:

    1. closedate changed to: "2001-08-21T15:30:28"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      The speed effect of the patch seems to be negative ...
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. priority changed to: "1 Zero"
    7. status changed to: "Pending"
    8. username: "msofer"
  5. Ticket change [e8ccdb471c] (rid 104707) by msofer on 2001-08-22 01:13:25:

    1. closedate changed to: "2001-08-21T18:13:25"
    2. closer changed to: "msofer"
    3. 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.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Postponed"
    7. status changed to: "Closed"
    8. username: "msofer"
  6. Add attachment "newRange.diff" [3060dc659c] (rid 93245) by msofer on 2002-03-06 21:44:36.

  7. Ticket change [f06abf278c] (rid 109193) by msofer on 2002-03-06 21:44:36:

    1. assignee changed to: "hobbs"
    2. 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
      
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. priority changed to: "5 Medium"
    6. status changed to: "Open"
    7. username: "msofer"
  8. Add attachment "newRange2.diff" [9619a2274a] (rid 106265) by msofer on 2002-03-07 06:06:40.

  9. Ticket change [99733f7620] (rid 110798) by msofer on 2002-03-07 06:06:40:

    1. 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. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [dd03d84014] (rid 114586) by msofer on 2002-03-07 19:46:31:

    1. 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?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [e3b36e9f01] (rid 87839) by msofer on 2002-03-07 19:46:32:

    1. icomment:
      
      
      File Added - 18961: newRangeNPeep.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  12. Add attachment "newRangeNPeep.patch" [f9a3a4d948] (rid 91740) by msofer on 2002-03-07 19:46:32.

  13. Ticket change [d84a2eb696] (rid 107409) by hobbs on 2002-06-20 05:42:40:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      pushing this back to miguel due to the number of changes he 
      has made to TEBC recently.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  14. Ticket change [cc729818d4] (rid 95700) by msofer on 2002-06-20 20:21:49:

    1. closedate changed to: "2002-06-20T13:21:49"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Most of these ideas are now in the HEAD
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "msofer"