Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the last of performance-related PRs. As with previous one, this description will be updated once i have more time to run all the benchmarks. Nothing super super cool, done mostly to keep consistency, but these are the latest results (requires additional verification). Please keep in mind that X is not X supplied tags in every input, but only in 90% of them (other 10% contain 1-64 tags, done to simulate a somewhat real situation).
91.356 ± 0.353
81.980 ± 0.859
126.592 ± 0.345
92.874 ± 0.277
146.673 ± 0.369
106.541 ± 0.284
185.319 ± 0.457
127.259 ± 0.235
274.408 ± 0.560
191.191 ± 0.331
503.440 ± 0.745
395.133 ± 0.781
821.375 ± 1.231
865.062 ± 1.071
The results are getting worse in 32+ range (compared to the single-iteration version as well), because the chance of actually seeing a replacement gets to 50% and higher. This, i believe, is where we are actually leaving the real situation. The double-iteration version is in fact the last minute experiment, there might be a bit of an improvement, will hopefully have some time to investigate. As in all other PRs, #6113 would greatly help to make another CPU relief step.