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

fix(runtime): move semantic analysis to the finalize step #2946

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

jsternberg
Copy link
Contributor

@jsternberg jsternberg commented Jun 29, 2020

This moves the semantic analysis to the finalize step like it was
previously. For applications that avoid finalizing unless they are using
the interpreter, this should restore the quicker startup time because
package registration will store the AST and move on.

In the longer term, we probably want to stop using init() so much and
switch to a system where the application explicitly pulls packages into
the runtime. For now, this is more simple and doesn't involve any
changes to existing applications and restores the previous speed for
commands that do not use flux but import the flux runtime.

influxdata/influxdb#18292

Done checklist

  • docs/SPEC.md updated
  • Test cases written

This moves the semantic analysis to the finalize step like it was
previously. For applications that avoid finalizing unless they are using
the interpreter, this should restore the quicker startup time because
package registration will store the AST and move on.

In the longer term, we probably want to stop using `init()` so much and
switch to a system where the application explicitly pulls packages into
the runtime. For now, this is more simple and doesn't involve any
changes to existing applications and restores the previous speed for
commands that do not use flux but import the flux runtime.
@jsternberg jsternberg merged commit 28d96b2 into master Jun 29, 2020
@jsternberg jsternberg deleted the fix/startup-regression branch June 29, 2020 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants