Overview
| Artifact ID: | bdfb371da1064fa61e0d125e18522d88667b8aef |
|---|---|
| Ticket: | 231523ffffffffffffffffffffffffffffffffff
[split $longString ""] uses far too much memory |
| User & Date: | dkf on 2001-02-08 11:56:00 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
When you feed a 5MB string into [split ... ""], it creates a completely new Tcl_Obj for each character (that's a cost of at least 120MB on a 32-bit architecture!) Surely it should be possible and even imperative that some kind of sharing between character strings should happen in this case? Even just doing this for the ASCII subset or the first UNICODE page (i.e. to better handle binary data) would be an immense benefit in the normal case.
- foundin changed to: "obsolete: 8.4a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dkf"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "[split $longString ""] uses far too much memory"
- type changed to: "Bug"