Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47dabea6af58bfd5b0132a3af3123f859484e00e
Ticket: 1143805fffffffffffffffffffffffffffffffff
Impurity of empty [list]
User & Date: msofer on 2005-05-11 21:21:14
Changes

  1. closedate changed to: "2005-05-11T14:21:14"
  2. closer changed to: "msofer"
  3. icomment:
    Logged In: YES 
    user_id=148712
    
    We had here one real bug (EIAS violation, fixed in HEAD),
    and one performance bug. As with all optimisations, there is
    a tradeoff: either an empty list has a list internal rep
    (and is therefore costly to create and destroy), or it
    doesn't (and it causes slowdowns in [concat]).
    
    As a side comment: having [list] return a listObj will not
    always speed things up. If you then lappend to it, you have
    to get rid of the empty list rep and replace it with a
    larger one. In that sense, the fact that it was created in
    the first place leads to a pure loss.
    
    Closing this, moving the [concat] issue over to [Bug
    1178805]. That will be addressed before 8.5a3 release. 
    
    
    
    
  4. login: "msofer"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "msofer"