Artifact 228cbb82767b6edd30fff9a580e51483c145ccc2:
- File generic/tclStringObj.c — part of check-in [76f96f2a4c] at 2009-02-22 04:38:58 on branch trunk — * 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. (user: dgp size: 76304)
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.