Skip to content

Make VKeyProcessor an isolating processor - #3240

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:vkey-processor-incremental
Sep 29, 2026
Merged

gbrodman merged 1 commit into
google:masterfrom
gbrodman:vkey-processor-incremental

Conversation

@gbrodman

@gbrodman gbrodman commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Register VKeyProcessor as an ISOLATING incremental annotation processor in META-INF/gradle/incremental.annotation.processors and pass the annotated TypeElement as the originating element when generating VKeyConverter classes via JavaPoet.

Previously, because VKeyProcessor was not declared incremental, Gradle disabled incremental Java compilation for both :core:compileJava and :core:compileTestJava, forcing a full recompilation of all ~3,000 source and generated classes in :core on every edit. This is because without knowing that the processor's input is isolated to a single test class, Gradle had to recompile everything.

This cuts recompilation time (after you make, say, a one-line change) from like 20-30 seconds to like 3-5 seconds


This change is Reviewable

Register VKeyProcessor as an ISOLATING incremental annotation processor in META-INF/gradle/incremental.annotation.processors and pass the annotated TypeElement as the originating element when generating VKeyConverter classes via JavaPoet.

Previously, because VKeyProcessor was not declared incremental, Gradle disabled incremental Java compilation for both :core:compileJava and :core:compileTestJava, forcing a full recompilation of all ~3,000 source and generated classes in :core on every edit. This is because without knowing that the processor's input is isolated to a single test class, Gradle had to recompile everything.

This cuts recompilation time (after you make, say, a one-line change)
from like 20-30 seconds to like 3-5 seconds
@gbrodman
gbrodman force-pushed the vkey-processor-incremental branch from 3674bd1 to cec6be0 Compare September 28, 2026 20:57
@gbrodman
gbrodman requested a review from weiminyu September 29, 2026 15:59

@weiminyu weiminyu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weiminyu reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gbrodman).

@gbrodman
gbrodman added this pull request to the merge queue Sep 29, 2026
Merged via the queue into google:master with commit 5e8558a Sep 29, 2026
16 checks passed
@gbrodman
gbrodman deleted the vkey-processor-incremental branch September 29, 2026 17:17
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