diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-07-20 09:13:44 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-07-20 09:13:44 (GMT) |
commit | 6662c3248a0690dd85923e868c6d4d2d0d91cf22 (patch) | |
tree | a477c541f6ecfa17894fb265ee1123edb4a3119f /ChangeLog | |
parent | d63bf48fae3c37de04f6f82c8bde59587e1ed2aa (diff) | |
download | tcl-6662c3248a0690dd85923e868c6d4d2d0d91cf22.zip tcl-6662c3248a0690dd85923e868c6d4d2d0d91cf22.tar.gz tcl-6662c3248a0690dd85923e868c6d4d2d0d91cf22.tar.bz2 |
Performance boost for [string is].
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2009-07-20 Donal K. Fellows <dkf@users.sf.net> + + * generic/tclCmdMZ.c (StringIsCmd): Reorganize so that [string is] is + more efficient when parsing things that are correct, at a cost of + making the empty string test slightly more costly. With this, the cost + of doing [string is integer -strict $x] matches [catch {expr {$x+0}}] + in the successful case, and greatly outstrips it in the failing case. + 2009-07-19 Donal K. Fellows <dkf@users.sf.net> * generic/tclOO.decls, generic/tclOO.c (Tcl_GetObjectName): Expose a |