Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd89cf93d927d0f536968b4a6acfeac13053fe81
Ticket: 2318906fffffffffffffffffffffffffffffffff
order of insertion seems to have large performance impact
User & Date: dkf on 2009-01-06 18:41:11
Changes

  1. icomment:
    On my machine (using [time] to do the measurements, which uses microsecond precision) I get a relative speed difference of a bit over 15 times with Tcl 8.5.2. That seems to be acceptable to me; we never warranted that nested dicts would be amazingly efficiently updated and accessed, and it is no surprise that there are ways to achieve performance-sensitive stuff that are faster. (You have a speed issue, true, but you have a trivial work around.)
    
    It would be possible to do something more efficient for this case, but working out how and when to enable the efficiency saving mechanism (i.e. caching the fact that a key is used on a path) is difficult and I'm not sure that the gains would be worth it. Keeping open as something to consider.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. priority changed to: "3 Low"
  5. username: "dkf"