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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "afredd"
- subsystem changed to: "None"
- title changed to: "8.5 lists sometimes uses more memory for 8.4.."
- type changed to: "Bug"