qwen-code/packages
Dex e3a247f99e
perf(core): add pure-ASCII fast path to text token estimation (#6551)
estimateTextTokens scanned every string char-by-char via charCodeAt to
classify ASCII vs non-ASCII code units. For pure-ASCII text (code,
English prose - the common case) a single regex scan using V8's
optimized string search replaces the JS loop, and the mixed-text path
now counts only non-ASCII units, deriving the ASCII count from the
length. The token formula is unchanged, so results are byte-identical
for every input; verified exhaustively over all 65536 single code units
plus 20k randomized mixed strings against the previous implementation.

Median of 6 solo benchmark runs over a deterministic mixed fixture set:
51.9ms -> 32.2ms (-38%, 1.61x).
2026-07-08 23:39:02 +00:00
..
acp-bridge feat(cli): Add session owner index for workspace runtimes (#6540) 2026-07-08 22:35:53 +00:00
audio-capture chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
channels fix(channels): add chat payload diagnostics (#6539) 2026-07-08 23:23:47 +00:00
chrome-extension Gate browser automation MCP on external adapter (#6472) 2026-07-08 23:26:44 +00:00
cli Gate browser automation MCP on external adapter (#6472) 2026-07-08 23:26:44 +00:00
core perf(core): add pure-ASCII fast path to text token estimation (#6551) 2026-07-08 23:39:02 +00:00
cua-driver fix(cua-driver): migrate Windows scripts + README rewrite (#6515) 2026-07-08 06:07:11 +00:00
desktop fix(desktop): preserve glued automation history records (#6344) 2026-07-05 23:53:49 +00:00
mobile-mcp chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
sdk-java fix(core): Align MCP OAuth guidance and docs (#5589) 2026-06-24 07:09:53 +08:00
sdk-python doc[sdk-python] Expand Python SDK usage documentation (#3995) 2026-05-12 15:27:00 +08:00
sdk-typescript feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
vscode-ide-companion fix(core): configurable vision bridge timeout + retry with fresh budget (#6541) 2026-07-08 23:24:39 +00:00
web-shell chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
web-templates chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
webui chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00