Skip to content

perf(lib): avoid generators for cache{Async,} - #84

Merged
TomerAberbach merged 2 commits into
TomerAberbach:mainfrom
koogoro:koogoro-rework-cache
Dec 16, 2025
Merged

TomerAberbach merged 2 commits into
TomerAberbach:mainfrom
koogoro:koogoro-rework-cache

Conversation

@koogoro

@koogoro koogoro commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

a quick benchmark showed that this results in something like a 1.7x to 2x improvement in performance when iterating an array for the first time with a cached iterator

@TomerAberbach TomerAberbach changed the title perf(lib): rework cache and asyncCache to avoid using generator functions perf(lib): avoid generators for cache{Async,} Dec 16, 2025
@TomerAberbach
TomerAberbach merged commit b233f03 into TomerAberbach:main Dec 16, 2025
4 checks passed
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