Precomputation

from blog James' Coffee Blog, | ↗ original
I have noticed a pattern across my work in search and on static site generators: in both cases, the key to offering good performance for users is to precompute as much information as you can. Text search engines rely on “reverse indices,” which map words to the documents they are in. Reverse indices are structured in such a way that allows...