Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d32b45b58440b11599351b48c4a0bc6d9815f4cb
Ticket: 2034347fffffffffffffffffffffffffffffffff
mem handling reform
User & Date: msofer on 2008-07-31 20:46:01
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The newly available allocCache field in Interp can be used to speed up most alloc/free as well as and Tcl_Obj allocation and freeing.
    
    Specifically, a simple extra interface to the functions in generic/tclThreadAlloc that receives a Cache pointer would bypass accessing the TSD. For Tcl_Obj allocation and freeing, the work can be done mostly in macros (see the macro TclAllocObjStorageEx() in HEAD).
    
    What this means is that we should pass the interp where available to the alloc and obj creation/deletion functions or macros (NULL if unknown). Most of the core activity happens with an interp at hand.
    
    This is a fairly trivial project, but rather bothersome (2000+ locs to change). Note that the "upgrade" can be done gradually, starting with the most critical parts. Note also that this would make normal allocations compete with TclStackAlloc in terms of speed, so that we could remove it and be free of its bothersome limitations.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "8"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "Use the ekeko to speed up threaded allocs "
  12. type changed to: "RFE"