Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef662c996c3d61c7f706f57d9b47f66eab437bb7
Ticket: 1447328fffffffffffffffffffffffffffffffff
performance of [concat] and empty lists
User & Date: msofer on 2008-08-17 21:22:14
Changes

  1. foundin changed to: "obsolete: 8.5.4"
  2. icomment:
    Logged In: YES 
    user_id=148712
    Originator: YES
    
    Oops ...this turned Tcl_ConcatObj from reader to hairy monster, see [Bug 2055782]. This is against the documented behaviour. This only happens when concat'ing one or more empty objs with a single list.
    
    Additionally Tcl_ConcatObj() would corrupt its input when: all things to be concat'ed were either empties or canonical lists, and at least 2 were not empty, and the first one was unshared. In that case it would add the new elements in place, hence modifying its input. THIS IS VERY BAD!
    
    Fixed now in 8-5-branch and HEAD.
    
    
  3. login: "msofer"
  4. mimetype: "text/plain"
  5. priority changed to: "9 Immediate"
  6. username: "msofer"