Manifest of check-in
[d2457fd966]
- Still WIP. See below.
Fixes Far East encoding performance regression introduced by the optimizations in prior commit. Surprising because the optimizations seem reasonable. Only seen on Windows but the optimization's removal of the 0-check seems to impact code generation.
No need to check for range 1:7F in generic code as already handled
by ASCII fast path.
Changed BYTE_COPYABLE to always reject nul bytes irrespective of
encoding direction.
End result: on Windows, far east regression eliminated. On WSL/gcc, ASCII and West Euro another 15% faster.
by
apnadkarni on
2026-02-26 08:33:45.
B ffe446a54f73d4058176ccaf7b75d93447bec5f430ff1f0425467ed483b45793
C Still\sWIP.\sSee\sbelow.\n\nFixes\sFar\sEast\sencoding\sperformance\sregression\sintroduced\sby\sthe\soptimizations\sin\sprior\scommit.\sSurprising\sbecause\sthe\soptimizations\sseem\sreasonable.\sOnly\sseen\son\sWindows\sbut\sthe\soptimization's\sremoval\sof\sthe\s0-check\sseems\sto\simpact\scode\sgeneration.\n\nNo\sneed\sto\scheck\sfor\srange\s1:7F\sin\sgeneric\scode\sas\salready\shandled\nby\sASCII\sfast\spath.\n\nChanged\sBYTE_COPYABLE\sto\salways\sreject\snul\sbytes\sirrespective\sof\s\nencoding\sdirection.\n\nEnd\sresult:\son\sWindows,\sfar\seast\sregression\seliminated.\sOn\sWSL/gcc,\sASCII\sand\sWest\sEuro\sanother\s15%\sfaster.
D 2026-02-26T08:33:45.272
F generic/tclEncoding.c c5ec444f929f6f577760ea2b52b04613f8860651f7e90db221fdb4d4d7d87164
F generic/tclIO.c 6cd51dd802741167543cf243d7014c51dd5fbaea03b8446cd30da1c50593d7b5
F generic/tclIcu.c a0b136532dc4e75674c27f58bfbac7a4ec582d11956ee0ea602c3708ae74c1c4
F generic/tclTest.c b136e59b66522f3ae1c381f6f0683e29bd689441a5c5a1bb753a55a7d0ba713e
F macosx/tclMacOSXBundle.c 93fb471d06c104384a040954229274697c04d1f2ff095d8cd86926119d503852
P 3d21e0d870aca1feb63e8155c7c80678e6bbdd7737bff8640020c620afe1548d
R a926d364d2fc3b538f9e7bb3c04a8b7d
U apnadkarni
Z d00f5540b3e7adc2e57a49ef4d4b652e