[memorylimiter] Add disable_gc configuration option (rebased) - #15666
[memorylimiter] Add disable_gc configuration option (rebased)#15666agoallikmaa wants to merge 1 commit into
Conversation
Co-authored-by: Shubham Sharma <vyagh.vy@gmail.com>
Merging this PR will improve performance by 22.45%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | BenchmarkTraceSizeSpanCount |
60 ns | 49 ns | +22.45% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing agoallikmaa:memlimit-gc-disable (9e0673a) with main (52e6bf4)
Footnotes
-
2 benchmarks were run, but are now archived. If they were deleted in another branch, consider rebasing to remove them from the report. Instead if they were added back, click here to restore them. ↩
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15666 +/- ##
==========================================
- Coverage 91.03% 91.03% -0.01%
==========================================
Files 729 729
Lines 48491 48493 +2
==========================================
Hits 44144 44144
- Misses 3020 3021 +1
- Partials 1327 1328 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This is #15092 by @vyagh rebased to resolve conflicts, as it appears the original author is not currently continuing on it.
Original description:
Adds a disable_gc configuration option to the memory_limiter processor. This allows users to opt out of forced garbage collection while maintaining logic for data refusal when memory limits are exceeded, supporting scenarios where multiple memory limiters are composed across pipelines.
Fixes #15081