Skip to content

Conversation

@molovo
Copy link
Member

@molovo molovo commented Feb 24, 2017

A number of changes made to the way Zulu and its packages are loaded in
order to dramatically increase startup performance.

  • Source is now moved into src directory, and the script build.zsh has been added to the repository, which concatenates all the source files into a single script with comments removed for speed.
  • The self-update command has been modified to run the build.zsh script once it has finished downloading updates.
  • Adds a new compile command, which runs zcompile on Zulu itself, all files in ~/.zulu/{bin,share,init}, the completion cache and the following files in the user's $ZDOTDIR:
    • .zlogin
    • .zshenv
    • .zprofile
    • .zshrc
    • .zlogout
      The end result is a massive increase in startup speed.
  • zulu compile is run in the background to compile sources on startup. A new --no-compile option has been added to zulu init to avoid this.

The install script has been modified in zulu-zsh/install#4 to include the build step, so this will need to be merged at the same time.

Fix #54

@molovo molovo added this to the v1.2.0 milestone Feb 24, 2017
This was referenced Feb 24, 2017
@molovo molovo force-pushed the experimenting_with_compiling branch from 2daebf1 to e35b21f Compare February 24, 2017 22:03
A number of changes made to the way Zulu and its packages are loaded in
order to dramatically increase startup performance.

* Source is now moved into `src` directory, and the script `build.zsh` has been added to the repository, which concatenates all the source files into a single script with comments removed for speed.
* The `self-update` command has been modified to run the `build.zsh` script once it has finished downloading updates.
* Adds a new `compile` command, which runs `zcompile` on the Zulu core, all files in `~/.zulu/{bin,share,init}`, the completion cache and the following files in the user's `$ZDOTDIR`:
  * `.zlogin`
  * `.zshenv`
  * `.zprofile`
  * `.zshrc`
  * `.zlogout`
  The end result is a massive increase in startup speed.
* `zulu compile` is run in the background to compile sources on startup. A new `--no-compile` option has been added to `zulu init` to avoid this.
@molovo molovo force-pushed the experimenting_with_compiling branch from e35b21f to b87e54f Compare February 25, 2017 09:21
@molovo molovo merged commit 12cabbd into version-1.2.x Feb 25, 2017
molovo pushed a commit that referenced this pull request Feb 26, 2017
@molovo molovo deleted the experimenting_with_compiling branch February 26, 2017 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants