Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d31600d8cf6f54e20e57c7fdeda3686052eb7bdf
Ticket: 2318906fffffffffffffffffffffffffffffffff
order of insertion seems to have large performance impact
User & Date: nobody on 2008-11-21 00:33:03
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    See attached tarball which has a script showing the problem.
    
    This seems to be related to nested dicts.
    
    I'm doing something like this in a loop:
    
    dict set $d "key1" $x $y
    dict set $d "key2" $a $u
    dict set $d "key2" $b $v
    dict set $d "key2" $c $w
    ...
    
    The "key2" inserts can occur multiple times per iterations.
    
    It's much faster to collect the "key2" stuff into a separate dict and copy them in one shot at the end of all the loops into $d instead of interleaving "key1" and "key2".
    
    
  4. foundin changed to: "obsolete: 8.5.5"
  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: "nobody"
  10. subsystem changed to: "15. Dict Object"
  11. title changed to:
    order of insertion seems to have large performance impact
    
  12. type changed to: "RFE"