Enable Node compile cache for 15-20% faster CLI startup: one-liner trick

DanielLockyer · x · 2026-08-06

Developer Daniel Lockyer shares a simple trick to speed up Node.js CLI startup: enable module compile cache with module.enableCompileCache(). In a test, redocly --help startup time dropped from 220ms to 184ms, a 15-20% improvement. The method requires just a couple of lines of code and can significantly improve CLI responsiveness.

Original post →

More from coding & agent

coding & agent channel →