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

Use Gc.quick_stat for faster stats #25

Merged
merged 2 commits into from
Mar 3, 2020
Merged

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Mar 3, 2020

Gc.stat spends time exploring the heap to collect more statistics, which we didn't report anyway.

For large heaps, Gc.stat can be a problem: I see collection times of around 2s with a 16GB heap.

`Gc.stat` spends time exploring the heap to collect more statistics,
which we didn't report anyway.

For large heaps, `Gc.stat` can be a problem: I see collection times of
around 2s with a 16GB heap.
@talex5 talex5 merged commit ead03f1 into mirage:master Mar 3, 2020
@talex5 talex5 deleted the quick-gc-stats branch March 3, 2020 11:40
talex5 added a commit to talex5/opam-repository that referenced this pull request Mar 3, 2020
CHANGES:

- switch float representation to OCaml's default `"%f"` (mirage/prometheus#22, @toots)
- use `Gc.quick_stat` for faster stats (mirage/prometheus#25, @talex5)
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.

1 participant