Overview
| Comment: | * generic/tclInt.decls: * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclUtf.c: added TclpUtfNcmp2 private command that mirrors Tcl_UtfNcmp, but takes n in bytes, not utf-8 chars. This provides a faster alternative for comparing utf strings internally. (Tcl_UniCharNcmp, Tcl_UniCharNcasecmp): removed the explicit end of string check as it wasn't correct for the function (by doc and logic). * generic/tclCmdMZ.c (Tcl_StringObjCmd): reworked the string equal comparison code to use TclpUtfNcmp2 as well as short-circuit for equal objects or unequal length strings in the equal case. Removed the use of goto and streamlined the other parts. * generic/tclExecute.c (TclExecuteByteCode): added check for object equality in the comparison instructions. Added short-circuit for != length strings in INST_EQ, INST_NEQ and INST_STR_CMP. Reworked INST_STR_CMP to use TclpUtfNcmp2 where appropriate, and only use Tcl_UniCharNcmp when at least one of the objects is a Unicode obj with no utf bytes. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
c78da914bed148014464cf2ed45f9ffb |
| User & Date: | hobbs on 2002-05-29 09:09:57.000 |
| Other Links: | manifest | tags |
Context
|
2002-05-29
| ||
| 10:35 | Made Tcl_UniCharNcmp faster on big-endian machines; the system memcmp()is probably optimized far in ... check-in: b3535ea391 user: dkf tags: trunk | |
| 09:09 | * generic/tclInt.decls: * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclUtf.c: ad... check-in: c78da914be user: hobbs tags: trunk | |
| 09:09 | * generic/tclCompCmds.c (TclCompileStringCmd): removed error creation in code that no longer throw... check-in: 9901b51fc6 user: hobbs tags: trunk | |
Changes
Modified ChangeLog
from [db27492b86]
to [fa771337ea].
[diff]
Modified generic/tclCmdMZ.c
from [9083df7967]
to [725a503a5e].
[diff]
Modified generic/tclExecute.c
from [9d21590b86]
to [2ec9be56cc].
[diff]
Modified generic/tclInt.decls
from [a88fb9fdfe]
to [b76a422b0f].
[diff]
Modified generic/tclIntDecls.h
from [6cb84f563c]
to [225b87bd30].
[diff]
Modified generic/tclStubInit.c
from [232aa20650]
to [0d15a6183d].
[diff]
Modified generic/tclUtf.c
from [8496aab82e]
to [03dbd6b1d6].
[diff]