Skip to content

⚡ Optimize Groovy version update by caching API response#119

Merged
keeganwitt merged 1 commit into
groovy:masterfrom
keeganwitt:performance-optimize-api-calls-2334598960846190438
Feb 20, 2026
Merged

⚡ Optimize Groovy version update by caching API response#119
keeganwitt merged 1 commit into
groovy:masterfrom
keeganwitt:performance-optimize-api-calls-2334598960846190438

Conversation

@keeganwitt

Copy link
Copy Markdown
Member

The update.sh script previously made a separate GitHub API call for each major Groovy version in the loop. This was inefficient and could lead to rate limiting.

This change fetches the tags once before the loop and reuses the cached response, reducing the number of network requests from 3 to 1.

The `update.sh` script previously made a separate GitHub API call for
each major Groovy version in the loop. This was inefficient and
could lead to rate limiting.

This change fetches the tags once before the loop and reuses the
cached response, reducing the number of network requests from 3 to 1.

Co-authored-by: keeganwitt <64612+keeganwitt@users.noreply.github.com>
@keeganwitt
keeganwitt merged commit 2c87fcd into groovy:master Feb 20, 2026
22 checks passed
@keeganwitt
keeganwitt deleted the performance-optimize-api-calls-2334598960846190438 branch February 20, 2026 21:09
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