Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 18131b29f212be36d41bb1561559e03e85fcb563
Ticket: 218824ffffffffffffffffffffffffffffffffff
Improve performance of [concat]
User & Date: nobody on 2000-10-26 01:06:03
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2257 RFE
    Version: 8.1
    SubmitDate: '1999-06-21'
    LastModified: '1999-12-11'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 2101 2098
    OS: Other
    Machine: NA
    FixedDate: '1999-12-11'
    FixedInVersion: 8.3b1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Paul Duffin
    
    Comments:
    The patch for 8.1 also contains some fixes to the Tcl_Set...Obj methods
        which
        have already gone into 8.1.1.
    
    DesiredBehavior:
    [concat] is slow, doesn't scale and destroys internal representations of
        objects
        because it handles strings and not lists as its documentation describes.
        Many
        people have used [concat] mistakenly assuming that it handles lists.
    
        The supplied patch (one for 8.1 and one for 8.1.1) fixes up [concat] so
        it works
        almost as fast as an [lconcat] (also part of the patch) while still
        maintaining
        the semantics when working with strings.
    
    Patch:
    http://freehosting1.at.webjump.com/pd/pduffin-webjump/patches/tcl8.1/concat8.1.diff.gz
    http://freehosting1.at.webjump.com/pd/pduffin-webjump/patches/tcl8.1.1/concat8.1.1.diff.gz
    
    PatchFiles:
    generic/tclBinary.c generic/tclResult.c generic/tclStringObj.c
        generic/tclBasic.c generic/tclObj.c generic/tclCmdIL.c generic/tclVar.c
        generic/tcl.decls generic/tclUtil.c generic/tclInt.h
        generic/tclListObj.c generic/tclNamesp.c tests/concat.test doc/concat.n
        unix/mkLinks
    
    
    
    For 8.3b1, I have made Tcl_ConcatObj work on pure lists and return
    a list object.  Also, Tcl_EvalObjEx is made list aware for the
    TCL_EVAL_DIRECT case.  These enhancement should suffice for the
    standard cases.  A better [lconcat] will be made separately. 
    -- 12/11/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "Improve performance of [concat]"
  11. type changed to: "Bug"