Skip to content

remove statistics -- there was no way from the CLI to print them #6485

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Apr 24, 2025

especially in long-running applications that use opam as a library reading and/or writing lots of opam files, this lead to a huge amount of memory usage for no obvious gain.

Partially addresses #6484

Please update master_changes.md file with your changes.

hannesm added 2 commits April 24, 2025 14:34
especially in long-running applications that use opam as a library
reading and/or writing lots of opam files, this lead to a huge amount of memory
usage for no obvious gain.

Partially addresses ocaml#6484
@hannesm
Copy link
Member Author

hannesm commented Apr 24, 2025

update: there was the environment variable OPAMSTATS, but I've not found anything on github that set it. of course, your backwards compatibility may differ -- but I find this specific form of statistics not very useful.

@kit-ty-kate
Copy link
Member

Personally, i'm fine with removing OPAMSTATS as it seems redundant with --debug-level=3/OPAMDEBUG, which already shows when files are read/written and which commands have been ran, with more useful information (the context where these things happen). LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants