Artifacts Associated With Ticket 1174551fffffffffffffffffffffffffffffffff
Ticket change [11931fb638] (rid 95169) by msofer on 2005-04-01 01:27:07:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "10. Objects"
- title initialized to: "TclDecrRefCount performance"
- type initialized to: "Patch"
Ticket change [98b7cbb2dc] (rid 110659) by msofer on 2005-04-01 08:27:07:
- icomment:
File Added - 128031: TDRCpatch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [4dc5768a8e] (rid 127111) by dkf on 2005-04-01 16:12:19:
- 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.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [c71575130d] (rid 121879) by msofer on 2005-04-02 04:02:11:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [daa932caa1] (rid 107828) by msofer on 2005-04-03 03:05:21:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [9b0b42187e] (rid 111060) by msofer on 2005-04-03 04:48:27:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [d3be3a7b0d] (rid 123336) by msofer on 2005-04-04 06:35:26:
- icomment:
File Deleted - 128229: File Added - 128358: TDRCpatch2
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "TDRCpatch2" [bb4a817252] (rid 129458) by msofer on 2005-04-04 06:35:26.
Ticket change [7c9861e9dc] (rid 97110) by dkf on 2005-04-05 21:30:04:
- icomment:
Logged In: YES user_id=79902 If it speeds things up and works, let's go with that. :^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [bf76540515] (rid 102256) by msofer on 2005-04-05 23:19:04:
- closedate changed to: "2005-04-05T16:19:04"
- closer changed to: "msofer"
- resolution changed to: "Accepted"
- status changed to: "Closed"