Skip to content

Cache reflection info in EntityCallbacksListener - #3258

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:cacheEntityCallbacks
Nov 4, 2026
Merged

gbrodman merged 1 commit into
google:masterfrom
gbrodman:cacheEntityCallbacks

Conversation

@gbrodman

@gbrodman gbrodman commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Pre-compute and cache @MappedSuperclass hierarchy, @Embedded fields, and @recursive* callback methods per class using ClassValue so reflection lookups and setAccessible(true) calls only run once per class instead of on every entity lifecycle event.


This change is Reviewable

Pre-compute and cache @MappedSuperclass hierarchy, @Embedded fields, and @recursive* callback methods per class using ClassValue<ClassCallbackInfo> so reflection lookups and setAccessible(true) calls only run once per class instead of on every entity lifecycle event.
@gbrodman
gbrodman requested a review from weiminyu November 3, 2026 19:41

@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 Nov 4, 2026
Merged via the queue into google:master with commit bf5423f Nov 4, 2026
16 checks passed
@gbrodman
gbrodman deleted the cacheEntityCallbacks branch November 4, 2026 17:31
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