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

[pool] Add support for dynamic, sync.Pool backed, object pools #3334

Merged
merged 4 commits into from
Mar 8, 2021

Conversation

vdarulis
Copy link
Collaborator

@vdarulis vdarulis commented Mar 7, 2021

What this PR does / why we need it:

If pool size in config is set to dynamic, the backing pool will be simply a wrapped sync.Pool.

name                                                 time/op
ObjectPoolParallelGetMultiPutContended               1.24µs ± 0%
ObjectPoolParallelGetMultiPutContended-12            2.98µs ± 0%
ObjectPoolParallelGetMultiPutContendedDynamic         818ns ± 0%
ObjectPoolParallelGetMultiPutContendedDynamic-12      203ns ± 5%
ObjectPoolParallelGetMultiPutContendedWithRefill     1.23µs ± 1%
ObjectPoolParallelGetMultiPutContendedWithRefill-12  3.10µs ± 5%

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:


Does this PR require updating code package or user-facing documentation?:


@vdarulis vdarulis requested a review from mway March 7, 2021 21:28
@codecov
Copy link

codecov bot commented Mar 7, 2021

Codecov Report

Merging #3334 (19595ff) into master (689c990) will decrease coverage by 0.0%.
The diff coverage is 74.6%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #3334     +/-   ##
=========================================
- Coverage    72.4%    72.4%   -0.1%     
=========================================
  Files        1099     1099             
  Lines      101748   101797     +49     
=========================================
+ Hits        73734    73762     +28     
- Misses      22930    22949     +19     
- Partials     5084     5086      +2     
Flag Coverage Δ
aggregator 76.5% <ø> (+<0.1%) ⬆️
cluster 84.9% <ø> (-0.1%) ⬇️
collector 84.3% <ø> (ø)
dbnode 75.6% <92.8%> (-3.4%) ⬇️
m3em 61.3% <0.0%> (-13.1%) ⬇️
m3ninx 73.5% <ø> (ø)
metrics 19.8% <ø> (ø)
msg 74.5% <ø> (-0.2%) ⬇️
query 67.4% <100.0%> (ø)
x 80.4% <69.6%> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 689c990...19595ff. Read the comment docs.

@vdarulis vdarulis merged commit a03e55f into master Mar 8, 2021
@vdarulis vdarulis deleted the v/dynamic_pool branch March 8, 2021 01:12
soundvibe added a commit that referenced this pull request Mar 9, 2021
* master: (22 commits)
  Remove deprecated fields (#3327)
  Add quotas to Permits (#3333)
  [aggregator] Drop messages that have a drop policy applied (#3341)
  Fix NPE due to race with a closing series (#3056)
  [coordinator] Apply auto-mapping rules if-and-only-if no drop policies are in effect (#3339)
  [aggregator] Add validation in AddTimedWithStagedMetadatas (#3338)
  [coordinator] Fix panic in Ready endpoint for admin coordinator (#3335)
  [instrument] Config option to emit detailed Go runtime metrics only (#3332)
  [aggregator] Sort heap in one go, instead of iterating one-by-one (#3331)
  [pool] Add support for dynamic, sync.Pool backed, object pools (#3334)
  Enable PANIC_ON_INVARIANT_VIOLATED for tests (#3326)
  [aggregator] CanLead for unflushed window takes BufferPast into account (#3328)
  Optimize StagedMetadatas conversion (#3330)
  [m3msg] Improve message scan performance (#3319)
  [dbnode] Add reason tag to bootstrap retries metric (#3317)
  [coordinator] Enable rule filtering on prom metric type (#3325)
  Update m3dbnode-all-config.yml (#3204)
  [coordinator] Include Type in RollupOp.Equal (#3322)
  [coordinator] Simplify iteration logic of matchRollupTarget (#3321)
  [coordinator] Add rollup type to remove specific dimensions (#3318)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants