Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 850a1c016e69b8d39deb5f5e226dcad9d6cb395d
Ticket: 1465666fffffffffffffffffffffffffffffffff
8.5 lists sometimes uses more memory for 8.4..
User & Date: afredd on 2006-04-06 11:47:48
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Just stumbled across a case where 8.5 appears to use
    more memory than 8.4 on windows.
    
    The following loop builds a list and uses the *same*
    amount of memory for both 8.4.8 and 8.5a4 on my
    machine:
    
     set lst {}
     for {set i 0} {$i < 2000000} {incr i} {
      lappend lst $i
     }
    
    (~56,800K for both versions.)
    
    Now just sticking a dash in front of the $i
    changes things:
    
     set lst {}
     for {set i 0} {$i < 2000000} {incr i} {
      lappend lst -$i
     }
    
    Now 8.4.8 uses 96,100K to 8.5a4's 103,724K.
    (In task manager there's a difference of 7K between
    the Mem Usage, and a difference of 8K in the VM Size).
    Both runs are done in fresh tclsh's.
    
    Using different item elements brings back memory
    usage parity eg. [lappend lst " $i "]
    uses the same in both. Also ".$i" uses more in 8.5
    , but "..$i" gives the same. Weird!
    
    Is this additional memory usage due to a bug fix,
    or an (un)?intended behaviour change?
    
    Cheers.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "afredd"
  9. subsystem changed to: "None"
  10. title changed to: "8.5 lists sometimes uses more memory for 8.4.."
  11. type changed to: "Bug"