Overview
| Artifact ID: | 3417d8dd48f353690d5129cb11c8200f5d8e2795 |
|---|---|
| Ticket: | 32c5740a4d3e86b1973915d92f07d5aee6104a14
Undesirable [lappend] performance as LIST_MAX is reached |
| User & Date: | dgp on 2015-11-19 16:59:26 |
Changes
- icomment:
The first problem with this demo is the demands it makes. In order to see the demonstration, a list of ~400M elements is needed. As written each element has a unique value which requires 8 bytes for the pointer, 32 bytes for the Tcl_Obj struct, and about 20 bytes for the string value. This means a minimum of ~24G of active RAM is needed just to run the demo. Such systems are not uncommon, but they're not yet the norm, I'd say, and in fact my everyday development system lacks enough memory. Since it's a linux system, all I get is death by OOMKiller. I believe the key demonstration doesn't need unique element values, just a long list, so I edit the lappend command to be: lappend my_list A This makes a list of 400M elements, but they are all the same element, so we now only require ~4G to demo the problem. Many more folks can look at that.
- login: "dgp"
- mimetype: "text/plain"