TLDR Dev · ARTICLES & TUTORIALS
WE FIXED A 6-YEAR-OLD JAVASCRIPT MEMORY LEAK
Summary from the TLDR Dev newsletter
DebugBear fixed a 6-year-old memory leak in its Google Cloud Functions caused by lodash's `memoize` caching all data indefinitely without clearing it. The leak only showed up with thousands of unique URLs in production, not in local testing with repeated URLs, so the company just lived with occasional crashes and auto-retries.