Skip to content
Tcl Source Code Check-in [76f96f2a4c]
Login

Check-in [76f96f2a4c]

Overview
Comment: * generic/tclStringObj.c: Several revisions to the shimmering patterns between Unicode and UTF string reps. Most notably the call: objPtr = Tcl_NewUnicodeObj(...,0); followed by a loop of calls: Tcl_AppendUnicodeToObj(objPtr, u, n); will now grow and append to the Unicode representation. Before this commit, the sequence would convert each append to UTF and perform the append to the UTF rep. This is puzzling and likely a bug. The performance of [string map] is significantly improved by this change (according to the MAP collection of benchmarks in tclbench). Just in case there was some wisdom in the old ways that I missed, I left in the ability to restore the old patterns with a #define COMPAT 1 at the top of the file.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 76f96f2a4ccf5d623365d0146b1e9c1b32343684
User & Date: dgp on 2009-02-22 04:38:58.000
Other Links: manifest | tags
Context
2009-02-22
17:45
Revert commits of 20080723. Those were speed tests, that are inherently brittle. check-in: 1ee78aeeae user: ferrieux tags: trunk
04:38
* generic/tclStringObj.c: Several revisions to the shimmering patterns between... check-in: 76f96f2a4c user: dgp tags: trunk
2009-02-20
18:19
* generic/tclPathObj.c: Fixed mistaken logic in TclFSGetPathType() * tests/fileName.... check-in: c8c2551b94 user: dgp tags: trunk
Changes