Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f71a2e1da681009fdd6efbaa0ddd1a11a15bf3c4
Ticket: 2992970fffffffffffffffffffffffffffffffff
Slow performance of [append]
User & Date: ferrieux on 2010-04-30 02:34:29
Changes

  1. 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 ?
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"