Speeding up C++ functions with a thread_local cache | Not Hacker News!