Where Pion does not help¶
The cases below are the ones where installing Pion costs you time and gives nothing back. Read this before you install.
Across all 16 cores of one Linux server, both sides as sixteen independent keyspaces, sixteen Redis processes beat Pion's sixteen workers by 13–18%. Pion's lead over Redis is on one keyspace with I/O threads.
-w Nis N independent keyspaces, not one shared keyspace. The server refuses to start with-w N > 1unless you pass--independent-workers.- The default is one thread. Without
--io-threads, Pion trails Redis withio-threads 8at pipeline depths 1 and 10, and leads single-threaded Redis at every depth. I/O threads pay on a server with cores to spare; on a Mac with the client on the same machine they lower throughput, for Redis too. - No TLS. Loopback by default; terminate TLS at a proxy.
- Eviction holds RSS, not allocator bytes.
--maxmemory-policyevicts as Redis's policies do, but freed memory stays with the allocator, so RSS can sit somewhat over the limit after a burst. - Cluster mode is single-node. Slot migration and replication exist; production multi-node does not.
- One program, one fixed prefix: use mlx-lm's own prompt-cache file.
save_prompt_cache/load_prompt_cacheship with mlx-lm and answer faster than a Pion fetch: 37.0 ms against 69.0 ms at a 2,049-token prefix. Pion's prompt cache earns its place when several processes, tools or restarts share the cache. - The prompt cache caches prefill, not decode. If your bottleneck is tokens-per-second once generation starts, it changes nothing.
- The reuse has to be real, and the prefix has to be long. Time to first
token from a separate process, only the prefix length varying: 34 tokens →
1.4×. 268 → 4.6×. 1,035 → 12×. 2,049 → 17×. At short prefixes the saving
is small — about 14 ms at 34 tokens, not worth a second process. The demo
once printed a slowdown at a short prefix, and shipped that way for a while;
it defaults to 2,048 now, and
--prefix-tokens 33shows how little there is to save. - The sparse selector is NIAH-class. Factual QA over dense paragraphs needs a query-aware selector; the default block-mean selector is built for finding a needle, not for reading every paragraph.
- A large vector index that keeps taking writes. Vectors written since the last build are searched exactly, and during a rebuild every search is. At 500K vectors on an EPYC 8124P a query took 1.6 ms from the graph alone, 3.8 ms with 10,000 vectors written since, and 190 ms during the 84 s rebuild. An index loaded once and then queried pays none of this.
- One maintainer, working evenings.
The Redis comparison's raw output, scripts and method are in the 2026-10-06 results; the prompt-cache numbers are reproducible from the reproducers.