Overview
| Artifact ID: | 7a912e093bbc375334798d8688c79f25866789b2 |
|---|---|
| Ticket: | 781585ffffffffffffffffffffffffffffffffff
Interpreter 10 time slower then 8.3.3 |
| User & Date: | pspjuth on 2003-08-05 07:20:41 |
Changes
- icomment:
Logged In: YES user_id=98900 My theory is that there is a lingering object reference to the first append's result, causing an object duplication in the second append. By invoking any non byte compiled command between the appends, it works. proc goappend {w} { set append append if {$w == 0} { $append ::buffout x append ::buffout x } elseif {$w == 1} { $append ::buffout x string range a 0 0 append ::buffout x } else { $append ::buffout x string index a 0 append ::buffout x } } puts [info patch] set buffout [string repeat x 30000] puts [time {goappend 0} 5000] set buffout [string repeat x 30000] puts [time {goappend 1} 5000] set buffout [string repeat x 30000] puts [time {goappend 2} 5000] 8.5a0 249.5 microseconds per iteration 10.8 microseconds per iteration 244.5 microseconds per iteration - login: "pspjuth"
- mimetype: "text/plain"
- username: "pspjuth"