Overview
| Artifact ID: | b73be1de715174a55c9ede89cd0cb32f9bb4e4e1 |
|---|---|
| Ticket: | 1064243fffffffffffffffffffffffffffffffff
use memmove() in Tcl_ListObjReplace() |
| User & Date: | das on 2004-11-11 01:11:58 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- priority changed to: "8"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "das"
- subsystem changed to: "14. List Object"
- title changed to: "use memmove() in Tcl_ListObjReplace()"
- type changed to: "Patch"