Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d4083c50b0a46b7bb925e68c18d700c3b594f8ed
Ticket: 582256ffffffffffffffffffffffffffffffffff
Releasing Tcl_Obj Allocator
User & Date: georgeps on 2006-01-09 14:19:46
Changes

  1. icomment:
    Logged In: YES 
    user_id=585068
    
    I'm interested in some kind of better Tcl_Obj pool that
    doesn't use a high-water-mark allocator, because I think it
    could help performance (as you found).  I have profiled Tcl
    using a modified tcl-bench and gprof in NetBSD x86, and
    malloc consumes a great deal. 
    
    The cost of using malloc is probably greater, because it's
    designed for a wide range of objects.  The problem of
    fragmentation also occurs with malloc and a mixture of
    Tcl_Obj and other structures, that generally doesn't occur
    with a specialized pool allocator (although it could
    influence page release).
    
    I am interested in working on a new pooled allocator patch.
       I have implemented object pools in another project (not
    thread-safe though), so I think I have enough experience to
    give it a try, and make sense of your changes.  I'm also
    going to study "Zippy" (the threaded allocator to see what I
    can learn).  :)
    
    
    
  2. login: "georgeps"
  3. mimetype: "text/plain"
  4. username: "georgeps"