summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-02-22 04:38:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-02-22 04:38:58 (GMT)
commit300db4575ea04674f1f3ec8a0659075db7d18ac3 (patch)
tree17fda4b54b3e6a5ef902d948f42f9b8868170807 /ChangeLog
parentcabffe92aa625b6d83881d3f28857b4c50775aa5 (diff)
downloadtcl-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 'ChangeLog')
-rw-r--r--ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d456acb..44c049d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-02-21 Don Porter <dgp@users.sourceforge.net>
+
+ * 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.
+
2009-02-20 Don Porter <dgp@users.sourceforge.net>
* generic/tclPathObj.c: Fixed mistaken logic in TclFSGetPathType()