Skip to content

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Jan 11, 2026

This replaces byte-by-byte substring with incremental codepoint width accumulation.

Performance: 1000-char textfield click ~1M string ops -> ~1K lookups. Cursor now guaranteed to land on valid UTF-8 codepoint boundaries.

This replaces byte-by-byte substring with incremental codepoint width
accumulation.

Performance: 1000-char textfield click ~1M string ops -> ~1K lookups.
Cursor now guaranteed to land on valid UTF-8 codepoint boundaries.
@jserv jserv merged commit fe57cc5 into main Jan 11, 2026
11 checks passed
@jserv jserv deleted the text-cursor branch January 11, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants