Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0d6efe341902203dfc9f2200ddff5c974e332036
Ticket: 2992970fffffffffffffffffffffffffffffffff
Slow performance of [append]
User & Date: ferrieux on 2010-04-28 17:13:07
Changes

  1. icomment:
    Jeff, as Donal hints at ;-), my intention with /dev/zero was to obtain byte arrays, because the concatenation code paths are wildly different from the string case, *and* it is the byte array case that applies to you (fconfigure -transl binary).
    
    So yes, by "emulate /dev/zero" I meant something like [binary format ...].
    
    Let's see what you get in terms of timings with [binary format] instead of [string repeat]. I'll also put my hands on the sample you sent me by e-mail (thanks !).
    
    As a side note, I'm rather suspecting a quadratic-realloc issue, considering the small size of the chunks. Possibly the two versions that you are testing don't have exactly the same configured #defines regarding the allocator underneath (zippy or not, etc). Could an Activist chime in and tell us the precise allocator choices behind those two precise versions of AT, Win7 x64 ? 
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"