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 parallelism when compiling modules #262

Conversation

juanperi
Copy link
Contributor

Instead of loading everything into memory at once, I'm compiling the locales one by one in a stream, and then passing it to the parallel compiler.

In a project of mine, compile time goes from 2m 11s to 1m25s.
Memory consumption also goes down, from 3.35G to 2.56G

I'm aware the resulting code is not the most elegant. If you have ideas of better takes to do the same, I'm happy to try them. This is the minimal version that accomplishes the task of reducing memory and run time. Other takes would require more involved changes

@josevalim josevalim merged commit 95282a8 into elixir-gettext:master Jul 31, 2020
@josevalim
Copy link
Contributor

💚 💙 💜 💛 ❤️

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