Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0643cd548d7b4ad82ed55d1022231acf074a3979
Ticket: fa5c8a823085c0cd88bdd2d10a5c24f5ebb4bf07
memory cost and execution time exploding of nested namespaces
User & Date: pooryorick on 2017-05-18 05:49:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The following script consumes at least 1GB of memory:
    
    <code><verbatim>
    for {set i 0} {$i < 10000} {incr i} {
        set name [namespace eval ${name}[set name {}]::namespace$i {
            namespace current
        }]
    }
    </verbatim></code>
    
    It seems that the fully-qualified name of each created namespace is getting
    stored somewhere.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "21. [namespace]"
  15. title changed to: "memory cost of nested namespaces"
  16. type changed to: "Bug"