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

Improve the performance of the generated Erlang code #5

Open
chrrasmussen opened this issue Aug 30, 2020 · 0 comments
Open

Improve the performance of the generated Erlang code #5

chrrasmussen opened this issue Aug 30, 2020 · 0 comments

Comments

@chrrasmussen
Copy link
Owner

The generated Erlang code is not optimal in terms of performance. As a comparison:

  • Running the Idris 2 compiler on Erlang and compiling the Idris 2 codebase takes about 20 minutes.
  • Running the Idris 2 compiler on Chez Scheme and compiling the Idris 2 codebase takes about 1 minute.

I suspect that Chez Scheme gets a lot of help by the JIT. It is therefore exciting that JIT is in the works for Erlang as well. I still think it is possible to improve the performance, even for non-JIT-ed Erlang.

Somewhat related, the Idris 2 compiler is implemented using the IORef, IOArray, Buffer primitives mentioned in #4. If they can be improved, that might also help on the performance.

chrrasmussen pushed a commit that referenced this issue Oct 24, 2020
remove some redundancy, make tiny style changes
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

No branches or pull requests

1 participant