Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3e489b8d82af00f6e85e80a2cec8e57764a71e3a
Ticket: 735388ffffffffffffffffffffffffffffffffff
freeing lists takes nonlinear time
User & Date: dkf on 2003-05-12 15:54:09
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    Hmm.  Sounds to me like an unpleasant interaction between
    the low-level memory management engine and Tcl.  AIUI, the
    problem is that libc tries to free unused blocks of memory,
    which is laudable but potentially very expensive in time
    cost.  If the problem goes away with newer libc's the
    resolution is 'upgrade libc' though that's a really major
    undertaking... :^/
    
    I see no way to avoid this BTW.  The cost is not in Tcl
    itself and who knows how well the libc copes with things
    like madvise()?
    
    The difference between 8.3.2 and 8.4.2 seems strange to me.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"