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: |
d2457fd966c996c1feed2389c5b05dd2 |
| 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
Modified generic/tclEncoding.c
from [00bfc390df]
to [c5ec444f92].
[diff]