Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

precompile caching for faster init #3

Open
jaawerth opened this issue Oct 11, 2019 · 0 comments
Open

precompile caching for faster init #3

jaawerth opened this issue Oct 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jaawerth
Copy link
Owner

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 jaawerth added the enhancement New feature or request label Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant