Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 14ec987daaa322657dfb6f63b8d00bc299b2ee06
Ticket: 2544740fffffffffffffffffffffffffffffffff
[interp create] O(N^2) search for unused cmd name
User & Date: dgp on 2009-01-29 05:49:04
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    When not given a slave cmd name,
    [interp create] invents one
    of the form "interp%d".
    
    The search for an unused cmd name
    always starts with %d == 0 and
    increments by one, so a loop
    of [interp create] statements will
    exhibit N^2 performance to do an
    inherently linear task.
    
    Simply storing the last used %d
    value is enough to solve it.
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  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: "dgp"
  10. subsystem changed to: "20. [interp]"
  11. title changed to: "[interp create] O(N^2) search for unused cmd name"
  12. type changed to: "Bug"