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

faster 'opam config -env' #412

Closed
UnixJunkie opened this issue Jan 23, 2013 · 4 comments
Closed

faster 'opam config -env' #412

UnixJunkie opened this issue Jan 23, 2013 · 4 comments

Comments

@UnixJunkie
Copy link
Contributor

Hello,

It would be nice if this is made faster, because it slows down
the opening of new terminals for people who are used
to use a lot of them (because of the OPAM lines in ~/.bashrc).

Regards,
F.

@Chris00
Copy link
Member

Chris00 commented Jan 23, 2013

I was going to open the very same issue. On my system

$ time opam config -env
...
0.51user 0.02system 0:00.60elapsed 88%CPU (0avgtext+0avgdata 8168maxresident)k
0inputs+0outputs (4major+3195minor)pagefaults 0swaps

As a comparison:

$ time opam config --version
0.9.2
0.00user 0.00system 0:00.01elapsed 75%CPU (0avgtext+0avgdata 4696maxresident)k
0inputs+0outputs (0major+738minor)pagefaults 0swaps

@samoht samoht closed this as completed in 7551244 Jan 23, 2013
@samoht
Copy link
Member

samoht commented Jan 23, 2013

Right, now we are approaching 600 packages, I guess it's time to profile OPAM a little bit more carefully. So please, do not hesitate to report slow-down; you can also export OPAMSTATS=1 to get some raw stat numbers.

samoht added a commit that referenced this issue Jan 23, 2013
This is related to performance improvments mentionned in #412
@UnixJunkie
Copy link
Contributor Author

Hi,

I'm running opam version 0.8.3
Will it go faster if I update to the last zip you published in the tags?

Regards,
F.

@samoht
Copy link
Member

samoht commented Jan 24, 2013

The (very big) speed-ud is in master. I haven't tagged 0.9.2 yet, so you'll need to install from sources.

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

No branches or pull requests

3 participants