Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b73be1de715174a55c9ede89cd0cb32f9bb4e4e1
Ticket: 1064243fffffffffffffffffffffffffffffffff
use memmove() in Tcl_ListObjReplace()
User & Date: das on 2004-11-11 01:11:58
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl_ListObjReplace() should use memmove() instead
    of a manual copy loop to shift list elements in memory.
    The attached patch decreases time spent inTcl_ListObjReplace() 
    from 5.2% to 1.7% of overall runtime of
    tclbench on a ppc 7455 (i.e. 200% speed increase).
    
    also contained in the patch a small performance tweak to tclHash.c: 
    this hoists a few constant pointer dereferences out
    of loops to eliminate redundant loads that the gcc optimizer didn't
    deal with. Decreases time spend in Tcl_FindHashEntry() by 10% 
    over a full run of the tcl testuite on a ppc 7455.
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "das"
  9. subsystem changed to: "14. List Object"
  10. title changed to: "use memmove() in Tcl_ListObjReplace()"
  11. type changed to: "Patch"