Skip to content
Tcl Source Code History Of Ticket 1174551
Login

History Of Ticket 1174551

Artifacts Associated With Ticket 1174551

  1. Ticket change [11931fb638] (rid 95169) by msofer on 2005-04-01 01:27:07:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Ever since the fix of [Bug ???] the macro
      TclDecrRefCount became rather heavy - in both space and
      runtime. This patch reduces a lot of weight in the
      macro for the most frequent use cases - when 
         objPtr->typePtr->freeIntRepProc == NULL
      
      Note that these are mostly the objects that the core
      allocs and frees repeatedly - ints, wides, doubles,
      empties, type NULLs, ... 
      
      Please review: IIUC, this does not interfere with the
      safety mechanism implemented in the bugfix.
      
    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: "10. Objects"
    10. title initialized to: "TclDecrRefCount performance"
    11. type initialized to: "Patch"
  2. Ticket change [98b7cbb2dc] (rid 110659) by msofer on 2005-04-01 08:27:07:

    1. icomment:
      
      
      File Added - 128031: TDRCpatch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [4dc5768a8e] (rid 127111) by dkf on 2005-04-01 16:12:19:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Would work, but I do not (yet) approve of the patch. There
      ought to be a way to arrange for heavy users of TDRC (i.e.
      TEBC) to avoid frequent calls to TclObjInitDeletionContext()
      instead of recomputing it every time through, since this
      will hit threaded code disproportionately hard.
      
      Also, if the patch is applied, most of the deletion context
      machinery ought to be moved to tclObj.c anyway.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [c71575130d] (rid 121879) by msofer on 2005-04-02 04:02:11:

    1. icomment:
      
      
      File Added - 128130: TDRCpatch
      
      Logged In: YES 
      user_id=148712
      
      New patch - moving the deletion context machinery to tclObj.c
      
      The really heavy users of TDRC (TEBC) most frequently free
      objects with freeIntRepProc==NULL: either freshly created by
      string concatenation, or a numerical result of a
      computation. The macro is as fast and small as possible for
      that case. The other cases pay the penalty of a function
      call to TclFreeObj.
      
      An alternative approach is keeping TDRC unchanged, but
      making the deletion context cheaper to access repeatedly
      (either by caching it at TEBC entry, or in a slot in the
      interp structure). Even then, the overhead is
      non-negligible, especially for objs without a string rep -
      as can be measured in an unthreaded build.
      
      As discussed in the chat, we can later factor the context
      lookup out of TclFreeObj, and have a version that takes
      interp as argument to allow for faster access. This version
      can then be used for TDRC, while leaving T_DRC unchanged.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [daa932caa1] (rid 107828) by msofer on 2005-04-03 03:05:21:

    1. icomment:
      
      
      File Deleted - 128130: 
      
      
      
      File Added - 128229: TDRCpatch2
      
      Logged In: YES 
      user_id=148712
      
      Small change to the patch - extending the speed gains to
      Tcl_DecrRefCount.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [9b0b42187e] (rid 111060) by msofer on 2005-04-03 04:48:27:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Patch committed to msofer-wcodes-branch, where the speedup
      is remarkable. In HEAD most benchmarks seem to become
      slightly faster, some (LOOP for, iterate string) get a 15%
      boost.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [d3be3a7b0d] (rid 123336) by msofer on 2005-04-04 06:35:26:

    1. icomment:
      
      
      File Deleted - 128229: 
      
      
      
      File Added - 128358: TDRCpatch2
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Add attachment "TDRCpatch2" [bb4a817252] (rid 129458) by msofer on 2005-04-04 06:35:26.

  9. Ticket change [7c9861e9dc] (rid 97110) by dkf on 2005-04-05 21:30:04:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      If it speeds things up and works, let's go with that. :^)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  10. Ticket change [bf76540515] (rid 102256) by msofer on 2005-04-05 23:19:04:

    1. closedate changed to: "2005-04-05T16:19:04"
    2. closer changed to: "msofer"
    3. resolution changed to: "Accepted"
    4. status changed to: "Closed"