RSSAmplifier

pocoo · Aug 13, 2026

Zero-Allocation Text Handling on the Keystroke Path

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

How I removed 77% of heap allocations from Qwave's omnibox keystroke path — not with unsafe Swift, but by stopping pointless work: a bounded top-6 replacing a full sort of 500, Substring prefix drops replacing replacingOccurrences, and a SQLite prepared-statement cache. 4,370 → 1,011 mallocs per keystroke, all measured and commit-pinned.

Read on pocoo.vaked.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.