Skip to content

Remove (Get|Mutable)ByClassData from lazy fields.#28798

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_953473756
Draft

Remove (Get|Mutable)ByClassData from lazy fields.#28798
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_953473756

Conversation

@copybara-service

Copy link
Copy Markdown

Remove (Get|Mutable)ByClassData from lazy fields.

Callers which have a prototype should get the class data from the prototype and pass the class data. This is the same process that now happens in GetByPrototype, now made explicit in the caller.

There's also a small optimization in LazyField::MergeFromMessage which avoids loading the class data twice. The redundancy was made more obvious by this refactor.

Callers which have a prototype should get the class data from the prototype and pass the class data. This is the same process that now happens in `GetByPrototype`, now made explicit in the caller.

There's also a small optimization in `LazyField::MergeFromMessage` which avoids loading the class data twice. The redundancy was made more obvious by this refactor.

PiperOrigin-RevId: 953473756
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