fennel-nvim icon indicating copy to clipboard operation
fennel-nvim copied to clipboard

precompile caching for faster init

Open jaawerth opened this issue 4 years ago • 0 comments

Now that I have auto-sourcing of init.fnl and syncing of package.path to fennel.path working in the dev branch, eventually I'll want to look into caching/precompiling init.fnl and external plugin code for faster startup times.

Thinking I can just do a basic mtime check as part of either the require call or via a new function, compile to lua if the .fnl source is newer than the .lua source, otherwise require the lua instead. This naturally won't be done for require-macros.

One added complexity would be making sure it's tracing usage of the include special to make sure inlined files are also checked for modifications.

jaawerth avatar Oct 11 '19 01:10 jaawerth