Skip to content
Tcl Source Code Check-in [d2457fd966]
Login

Check-in [d2457fd966]

Overview
Comment: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.
Timelines: family | ancestors | descendants | both | apn-utf-fastpath
Files: files | file ages | folders
SHA3-256: d2457fd966c996c1feed2389c5b05dd2f7a4b7b811fc7c9ceefbd2a9773eb21b
User & Date: apnadkarni on 2026-02-26 08:33:45.272
Other Links: branch diff | manifest | tags
Context
2026-02-26
08:48
Protect against invalid case of nul byte in Tcl's internal string rep check-in: d152bbd868 user: apnadkarni tags: apn-utf-fastpath
08:33
Still WIP. See below. Fixes Far East encoding performance regression introduced by the optimization... check-in: d2457fd966 user: apnadkarni tags: apn-utf-fastpath
2026-02-25
17:01
Review: Handling of TCL_COMBINE here makes no sense, the same can be done even faster. APN - Indeed... check-in: 3d21e0d870 user: jan.nijtmans tags: apn-utf-fastpath
Changes