Ruby can be slow for short-running apps because it needs to load (require) dependencies

Ruby programs are not compiled, and bytecode needs to be generated on the fly. As a result, a #require call can take seconds, which can be a huge performance hit for a short-running process such as Nanoc.

There is no built-in way to save compiled bytecode. There is bootsnap, though.

See also

Note last edited June 2022.
Backlinks: Nanoc sites take too long to load.
***