Skip to content

Cleanups and micro-optimizations around deserializeRecordMetaData()#4351

Open
RobertBrunel wants to merge 4 commits into
FoundationDB:mainfrom
RobertBrunel:deserializeRecordMetaData
Open

Cleanups and micro-optimizations around deserializeRecordMetaData()#4351
RobertBrunel wants to merge 4 commits into
FoundationDB:mainfrom
RobertBrunel:deserializeRecordMetaData

Conversation

@RobertBrunel

Copy link
Copy Markdown
Contributor
  • In RecordLayerIndex.from(), remove the call to index.toProto(), which serializes the entire root key expression and options even though we only need the resulting predicate field. Instead, read the predicate directly.
  • In deserializeRecordMetaData(), replace containsKey()+put()+get() by just computeIfAbsent().
  • Also collapse two identical schemaTemplateBuilder::build() suppliers into one.
  • Plus minor drive-by cleanups.

In `RecordLayerIndex.from()`, remove the call to `index.toProto()`, which serializes the entire root key expression and options even though we only need the resulting predicate field. Instead, read the predicate directly.
@RobertBrunel RobertBrunel requested a review from g31pranjal July 14, 2026 15:26
@RobertBrunel RobertBrunel self-assigned this Jul 14, 2026
@RobertBrunel RobertBrunel added the performance Performance issues label Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant