Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3bffa62f525df6dd787754824a68c2b2e2ec9b40
Ticket: b43f2b49f75ec8b60c7e5b59a21556528657e77a
Non-linear lappend performance
User & Date: dgp on 2014-07-16 19:51:42
Changes

  1. icomment:
    Trouble is in the lappendMultiple bytcode case from May 2013.
    
    It implements multivalue lappend via the LIST_CONCAT
    instructions, which is efficient so long as the value to
    append to is unshared.
    
    In this situation, it is not unshared.  The list variable
    holding the value holds one copy and another copy
    is on the stack for LIST_CONCAT to operate on.
    
    I suspect we could find a way to cheat and pull the
    value out of the variable, taking away the sharing,
    since we're about to overwrite it anyway.
    
  2. login: "dgp"
  3. mimetype: "text/plain"