Skip to content

Optimize DataLoader performance - #9

Merged
beeequeue merged 4 commits into
mainfrom
dataloader-perf
Jul 27, 2026
Merged

Optimize DataLoader performance#9
beeequeue merged 4 commits into
mainfrom
dataloader-perf

Conversation

@beeequeue

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: 6a47fc4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
alleviate Patch

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

@codspeed-hq

codspeed-hq Bot commented Jul 27, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 74.55%

⚡ 10 improved benchmarks
✅ 16 untouched benchmarks
⏩ 1 skipped benchmark1

Performance Changes

Benchmark BASE HEAD Efficiency
memoize hit 918.6 µs 329.7 µs ×2.8
memoize miss 1,055.6 µs 514.8 µs ×2.1
createDataLoader.load 3.4 ms 1.8 ms +83.5%
createDataLoader.load maxBatchSize: 100 3.4 ms 1.9 ms +81.38%
same object references 4.1 ms 2.4 ms +67.74%
memoize max eviction 1,374.5 µs 832.6 µs +65.09%
createDataLoader.load cache: false 2.5 ms 1.6 ms +56.19%
new objects with same shape 6.6 ms 4.3 ms +55.09%
createDataLoader.loadMany 3.5 ms 2.3 ms +50.9%
createDataLoader.load cached 1.4 ms 1 ms +36.4%

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 dataloader-perf (6a47fc4) with main (676ffb1)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

@beeequeue
beeequeue enabled auto-merge (squash) July 27, 2026 20:13
@beeequeue
beeequeue merged commit a673034 into main Jul 27, 2026
4 checks passed
@beeequeue
beeequeue deleted the dataloader-perf branch July 27, 2026 20:14
This was referenced Jul 27, 2026
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.

1 participant