enhance: Change NetworkManager bookkeeping data structure for inflight fetches#3394
Merged
enhance: Change NetworkManager bookkeeping data structure for inflight fetches#3394
Conversation
🦋 Changeset detectedLatest commit: eaef2ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Size Change: +8 B (+0.01%) Total Size: 77.8 kB
ℹ️ View Unchanged
|
Contributor
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: eaef2ca | Previous: 25b153a | Ratio |
|---|---|---|---|
normalizeLong |
498 ops/sec (±0.38%) |
497 ops/sec (±0.62%) |
1.00 |
infer All |
9264 ops/sec (±1.24%) |
8961 ops/sec (±1.54%) |
0.97 |
denormalizeLong |
273 ops/sec (±3.14%) |
276 ops/sec (±2.59%) |
1.01 |
denormalizeLong donotcache |
989 ops/sec (±0.31%) |
994 ops/sec (±0.42%) |
1.01 |
denormalizeShort donotcache 500x |
1408 ops/sec (±0.30%) |
1391 ops/sec (±0.35%) |
0.99 |
denormalizeShort 500x |
775 ops/sec (±2.33%) |
766 ops/sec (±2.11%) |
0.99 |
denormalizeShort 500x withCache |
5100 ops/sec (±0.14%) |
5313 ops/sec (±0.31%) |
1.04 |
queryShort 500x withCache |
2430 ops/sec (±0.34%) |
2436 ops/sec (±0.47%) |
1.00 |
denormalizeLong with mixin Entity |
260 ops/sec (±2.00%) |
256 ops/sec (±2.18%) |
0.98 |
denormalizeLong withCache |
6705 ops/sec (±0.17%) |
6897 ops/sec (±0.36%) |
1.03 |
denormalizeLong All withCache |
8182 ops/sec (±0.27%) |
7331 ops/sec (±0.19%) |
0.90 |
denormalizeLong Query-sorted withCache |
7360 ops/sec (±1.71%) |
6867 ops/sec (±1.04%) |
0.93 |
denormalizeLongAndShort withEntityCacheOnly |
1700 ops/sec (±0.36%) |
1688 ops/sec (±0.40%) |
0.99 |
getResponse |
6066 ops/sec (±1.06%) |
6323 ops/sec (±1.30%) |
1.04 |
getResponse (null) |
5727001 ops/sec (±0.70%) |
5163782 ops/sec (±0.63%) |
0.90 |
getResponse (clear cache) |
261 ops/sec (±1.81%) |
259 ops/sec (±1.94%) |
0.99 |
getSmallResponse |
2484 ops/sec (±0.28%) |
2607 ops/sec (±0.18%) |
1.05 |
getSmallInferredResponse |
2078 ops/sec (±0.31%) |
2066 ops/sec (±0.27%) |
0.99 |
getResponse Collection |
6307 ops/sec (±0.95%) |
6595 ops/sec (±1.07%) |
1.05 |
get Collection |
5827 ops/sec (±0.45%) |
5604 ops/sec (±0.44%) |
0.96 |
get Query-sorted |
6567 ops/sec (±0.52%) |
7219 ops/sec (±0.37%) |
1.10 |
setLong |
490 ops/sec (±0.63%) |
508 ops/sec (±0.41%) |
1.04 |
setLongWithMerge |
222 ops/sec (±0.34%) |
224 ops/sec (±0.38%) |
1.01 |
setLongWithSimpleMerge |
233 ops/sec (±0.41%) |
239 ops/sec (±0.52%) |
1.03 |
setSmallResponse 500x |
912 ops/sec (±0.31%) |
908 ops/sec (±0.33%) |
1.00 |
This comment was automatically generated by workflow using github-action-benchmark.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3394 +/- ##
=======================================
Coverage 98.74% 98.74%
=======================================
Files 125 125
Lines 2238 2238
Branches 458 459 +1
=======================================
Hits 2210 2210
Misses 13 13
Partials 15 15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3cb6174 to
d085b5e
Compare
fcb55b9 to
ac19ecf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
BREAKING CHANGE: NetworkManager.fetched, NetworkManager.rejectors, NetworkManager.resolvers, NetworkManager.fetchedAt
-> NetworkManager.fetching
Motivation
Better performance, security, and readability
Solution
Before
After