Skip to content

perf: cache javac target to bytecode mapping#376

Merged
keeganwitt merged 1 commit intogroovy:masterfrom
keeganwitt:perf-optimize-javac-target-cache-10355247099556298798
Mar 27, 2026
Merged

perf: cache javac target to bytecode mapping#376
keeganwitt merged 1 commit intogroovy:masterfrom
keeganwitt:perf-optimize-javac-target-cache-10355247099556298798

Conversation

@keeganwitt
Copy link
Copy Markdown
Member

Extracts the static mapping in translateJavacTargetToTargetBytecode to a private static final field initialized once in a static block. This avoids repeated object allocation and map population on every method call.

Extracts the static mapping in translateJavacTargetToTargetBytecode to
a private static final field initialized once in a static block.
This avoids repeated object allocation and map population on every
method call.

Co-authored-by: keeganwitt <64612+keeganwitt@users.noreply.github.com>
@keeganwitt keeganwitt merged commit a9cc58a into groovy:master Mar 27, 2026
5 checks passed
@keeganwitt keeganwitt deleted the perf-optimize-javac-target-cache-10355247099556298798 branch March 27, 2026 13:21
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