Reduce memory churn by not calling shrink_to_fit#338
Conversation
On an high thread count, we are getting contention on memory by constantly allocating and deallocating memory. We can save some of that by not calling shrink_to_fit. We might use a bit more performance, but gain on performance
WalkthroughThe PR removes three calls to Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
We might need to benchmark this a bit more |
|
As-tu roulé les benchmarks sur cette PR? |
Il faut que j'en refasse, maintenant qu'on a identifié le bottleneck to dispatch http. |
tahini
left a comment
There was a problem hiding this comment.
Putting a request changes to not merge accidentally until we know what the benchmarks say and confirm it is needed
On an high thread count, we are getting contention on memory by constantly allocating and deallocating memory. We can save some of that by not calling shrink_to_fit. We might use a bit more memory, but gain on performance
Summary by CodeRabbit