<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tries on Shai Asher</title><link>https://slow-is-smooth.io/tags/tries/</link><description>Recent content in Tries on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Fri, 20 Nov 2026 21:00:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/tries/index.xml" rel="self" type="application/rss+xml"/><item><title>An autocomplete smaller than the list it completes</title><link>https://slow-is-smooth.io/blog/an-autocomplete-smaller-than-the-list-it-completes/</link><pubDate>Fri, 20 Nov 2026 21:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/an-autocomplete-smaller-than-the-list-it-completes/</guid><description>&lt;p&gt;A doctor types &lt;em&gt;fem shaft frac&lt;/em&gt; into a diagnosis search box. Before the next keystroke lands, the&#10;box has to find, among 74,879 diagnoses, every description with a word starting &lt;em&gt;fem&lt;/em&gt;, a word&#10;starting &lt;em&gt;shaft&lt;/em&gt; and a word starting &lt;em&gt;frac&lt;/em&gt;, rank them, and show the best ten. That part is easy.&#10;This post is about how small the thing doing it can be, and the answer turned out to be smaller&#10;than the list it searches: every description, every word and every code, searchable, in 4,080 KB.&#10;The text file it was all read from is 6,275 KB.&lt;/p&gt;</description></item></channel></rss>