diff options
author | dgp <dgp@users.sourceforge.net> | 2009-02-22 04:38:58 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-02-22 04:38:58 (GMT) |
commit | 300db4575ea04674f1f3ec8a0659075db7d18ac3 (patch) | |
tree | 17fda4b54b3e6a5ef902d948f42f9b8868170807 /tests | |
parent | cabffe92aa625b6d83881d3f28857b4c50775aa5 (diff) | |
download | tcl-300db4575ea04674f1f3ec8a0659075db7d18ac3.zip tcl-300db4575ea04674f1f3ec8a0659075db7d18ac3.tar.gz tcl-300db4575ea04674f1f3ec8a0659075db7d18ac3.tar.bz2 |
* 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.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions