Overview
| Artifact ID: | f71a2e1da681009fdd6efbaa0ddd1a11a15bf3c4 |
|---|---|
| Ticket: | 2992970fffffffffffffffffffffffffffffffff
Slow performance of [append] |
| User & Date: | ferrieux on 2010-04-30 02:34:29 |
Changes
- icomment:
At a guess, I'd say that a realloc is costly only when another allocated block sitting after the current one prevents its growth. So things get very dependent on other allocations in the loop *and* on the system malloc()'s strategy for picking a new address (eg small blocks at one end of the heap, big blocks at the other end). Donal, do your observations support this guesswork ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"