Skip to content

Batch cachers in parallel checker#15545

Merged
josevalim merged 2 commits into
mainfrom
jv-batch-cachers
Jul 6, 2026
Merged

Batch cachers in parallel checker#15545
josevalim merged 2 commits into
mainfrom
jv-batch-cachers

Conversation

@josevalim

Copy link
Copy Markdown
Member

And consider splitting cachers and checkers.

module_tuple = module_map_to_module_tuple(module_map)
:ets.insert(table, {module, mode})
send(checker, {__MODULE__, :cached, module, self(), ref})
checker_receive(mon_ref, ref, pid, checker, table, module, module_tuple, log?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also try a third variant, which is the first commit only with :erlang.garbage_collect(self()) just before this line (before checker_receive).

@josevalim josevalim merged commit 82fac2f into main Jul 6, 2026
26 checks passed
@josevalim josevalim deleted the jv-batch-cachers branch July 6, 2026 15:19
@josevalim

Copy link
Copy Markdown
Member Author

💚 💙 💜 💛 ❤️

josevalim added a commit that referenced this pull request Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant