-
Notifications
You must be signed in to change notification settings - Fork 993
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
Reuse session in rest requests #14795
Reuse session in rest requests #14795
Conversation
be08578
to
231ddd5
Compare
Thanks for your contribution. It seems that the change broke some integrations tests that have some mocking, if you can please try to have a look, and if it makes sense to fix the mocking for the tests to pass, or something else is happening. If not, don't worry, we can try to have a look ourselves. I am curious, how did you get that deep into the Conan code to realize this? What effects were you seeing, like slower than expected http calls? |
231ddd5
to
407458b
Compare
Hey!
I'm currently using Conan 1 migrating to Conan 2. During this migration I realized that Conan 2 was much slower. This disappointed me and my colleagues and so I started digging into ;-) |
Should I open two PRs? One for |
Interesting! That much slower than caching the session really makes a big difference? If this bugfix improves noticeable the speed, that would be great, thanks again for looking into this! |
Not necessary, we merge |
On my client and infrastructure I had these differences:
|
This is great! Thanks a lot for going above and beyond and investigating the root cause of the slowdown :) |
Sure! This is how Open-Source should work in my opinion ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing a (subjective) improvement in compatibility resolution with this change too, linking #14799 to not lose track of improvements on that area
Amazing. Installing some large graph (only recipes + package_id computation), reduced from 22 seconds to 11 seconds. Thanks again for contributing this! It will be in next 2.0.12 |
Thanks a lot, it's way way way faster when conan checks new RREV, PREV and compatible packages. |
Changelog: BugFix: Reuse session in ConanRequester to speed up requests.
Docs: omit
fixes #14794