Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dece934bdc04f69bbe904a87edd3106bccd92c82
Ticket: 1772004fffffffffffffffffffffffffffffffff
objReform
User & Date: msofer on 2007-08-10 21:43:02
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    (all numbers on 32 b systems)
    
    A Tcl_Obj requires 24 bytes, a typical cache line fits 32 bytes. This means that about half the Tcl_Objs will occupy a single cache line, half will require two.
    
    Adding 8 bytes at the end of a Tcl_Obj insures that all Tcl_Obj are cache-aligned. The additional space can be used to store the stringRep for small strings, saving the alloc/free.
    
    Attached a proof-of-concept patch (hard wired for 32b, for 64b 16 bytes should be added).
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "objReform"
  12. type changed to: "Patch"