Skip to content

chore: optimize reading logical time from samples in the trivial cases#60

Open
doudou wants to merge 2 commits intoresize_containersfrom
opt_logical_time_reading
Open

chore: optimize reading logical time from samples in the trivial cases#60
doudou wants to merge 2 commits intoresize_containersfrom
opt_logical_time_reading

Conversation

@doudou
Copy link
Member

@doudou doudou commented Feb 26, 2026

This speeds up the normalization process significantly (x5) on types that need this "fix".

@doudou doudou requested a review from wvmcastro February 26, 2026 18:57
@doudou doudou force-pushed the opt_logical_time_reading branch from 6cf3437 to da6da7e Compare February 26, 2026 19:27

def extract_logical_time(raw_payload)
return unless @logical_time_field
def self.compound_field_directly_addressable?(compound_type, field_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Doc: a field is directly addressable if it is declared before a container field type

Comment on lines +220 to +222
Output.compound_field_directly_addressable?(
field_type, "microseconds"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Your intention with the second check is to verify that field_type is "base/Time" ?

doudou added 2 commits March 3, 2026 17:36
This speeds up the normalization process significantly (x5) on types that need
this "fix".
Strictly speaking, we don't have to, but let's strive to have a good balance
between genericity and complexity ;-)
@doudou doudou force-pushed the opt_logical_time_reading branch from da6da7e to 2ec3df1 Compare March 3, 2026 20:37
@doudou doudou force-pushed the resize_containers branch from 1aa2ecd to 756b1f1 Compare March 3, 2026 20:37
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