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

stop generating quoted code and just generate the code #85

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

oscardssmith
Copy link
Contributor

@oscardssmith oscardssmith commented Jan 31, 2025

This is NFC, but rather than evaling quoted code, we can just generate the code itself. I highly recommend reviewing this with whitespace hidden as there are only ~100 lines of non-whitespace changes (removing the quote Expr(:toplevel)... changes the indentation of all of the auto-generated code).

As a somewhat unexpected benefit, this appears to improve precompilation time from 17.37 seconds to 15.55. (TTFX is unchanged)

@jwahlstrand jwahlstrand merged commit 2bd0d6f into JuliaGtk:main Feb 1, 2025
11 checks passed
@jwahlstrand
Copy link
Member

Thanks!

@oscardssmith oscardssmith deleted the os/stop-eval-import branch February 1, 2025 19:00
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