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

Look into compiling source to speed up load time #54

Closed
molovo opened this issue Feb 23, 2017 · 1 comment
Closed

Look into compiling source to speed up load time #54

molovo opened this issue Feb 23, 2017 · 1 comment

Comments

@molovo
Copy link
Member

molovo commented Feb 23, 2017

I've got two branches open currently to look into this:

  • experimenting_with_compiling moves the core into a src folder, and adds a build script which concatenates the entire source into a single file, and then runs zcompile on it. It also compiles all executable scripts and autoloadable functions in packages when they are linked.
  • experimenting_with_lazy_loading simply defers the loading of internal commands until they are called, rather than loading them on zulu init.

I would have expected both the above methods to have had some effect on startup time, but actually they both made it slower, which surprised me. If anyone has any ideas on how either of the above methods could be used to improve performance (or any other suggestions), please let me know.

@molovo
Copy link
Member Author

molovo commented Feb 25, 2017

Managed to get compilation working properly, so this will be included in #49.

@molovo molovo added the has pr label Feb 25, 2017
@molovo molovo closed this as completed Mar 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant