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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improve compilation performance and reduce compiled module size #132

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Qqwy
Copy link
Owner

@Qqwy Qqwy commented Jun 14, 2022

Fixes #110

  • Instead of compiling the type-datastructure of the current error at each of the error responses, rebuild it once we create an exception from it from the outside in.
  • Reconsider the type definitions of all the problem_tuple types. One approach might be to compile all module atom names, so we still have a stricter way to disambugate particular problem_tuples in the formatter and for data generation?
  • Fix the tests. Quite a challenge 馃槄

The example code of the example now results in an Erlang core module of only ~138MB large, and compiles in roughly 15s on my local computer. (On faster computers, it probably will be sub-10s). I think this is as far as we can push this, without moving away from compiling all checks inline (which is out of scope for now, although it makes sense to add this in a future version.)

@Qqwy Qqwy marked this pull request as draft October 26, 2022 15:15
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.

Question about Compilation Time
1 participant