Skip to content

Conversation

@uros-db
Copy link
Contributor

@uros-db uros-db commented Jun 28, 2024

What changes were proposed in this pull request?

Cache numChars value in a thread-safe way.

Why are the changes needed?

Faster access to numChars() method, which currently requires entire UTF8String scan every time.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@uros-db uros-db requested a review from yaooqinn June 29, 2024 12:13
Copy link
Member

@yaooqinn yaooqinn left a comment

Choose a reason for hiding this comment

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

LGTM

@yaooqinn yaooqinn closed this in 0487d78 Jul 1, 2024
@yaooqinn
Copy link
Member

yaooqinn commented Jul 1, 2024

Thank you @uros-db , merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants