Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5f1e468ee898e605ebb12385354833eb7fd64f6b
Ticket: 1869989fffffffffffffffffffffffffffffffff
memory leak when using expr
User & Date: melbardis on 2008-01-12 16:45:13
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    using [expr ...] in a loop appears to cause a constant memory leak. it appears to be allocating stuff in TclLiterla... also fairly (very) slow operation!
    
    tcl 8.5 / windows xp
    
    here is the code i used
    
    #-----------------------------
    set numgen 200000
    set delta 1
    set start_time 1
    
    for {set i 0} {$i < $numgen} {incr i} {
    
        set time [expr $start_time + ($delta * $i) ]
    }
    #-----------------------------
    
    memory start small, now it is about 48K and is still running! like i said slow...
    
    
    
  4. foundin changed to: "obsolete: 8.5.0"
  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: "melbardis"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "memory leak when using expr"
  12. type changed to: "Bug"