Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 42292ba483f8028ebbe223399c2ebe9a76aaa9fc
Ticket: 2832003fffffffffffffffffffffffffffffffff
Possible dict performance enhancement
User & Date: nickhounsome on 2009-08-04 13:33:17
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [from comp.lang.tcl]
    
    A quick glance at the code appears to show rehashing when copying Dict
    objects.
    
    Either I have missed something or this is an unnecessary waste of time
    as surely you can just allocate copies of the ChainEntry instances
    from the old dict and fix up the pointers.
    
    One might even think of elevating ChainEntry to a first class,
    reference counted, Tcl object thus allowing even greater sharing
    between dicts such that variable altering dict operations on shared
    dict values could cause ChainEntry objects to be shared thus requiring
    only a few allocations (The altered key/value ChainEntry and its
    predecessor) whatever the size of the dictionary. 
    
  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: "nickhounsome"
  10. subsystem changed to: "15. Dict Object"
  11. title changed to: "Possible dict performance enhancement"
  12. type changed to: "RFE"