Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48748][SQL] Cache numChars in UTF8String
### 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. Closes #47142 from uros-db/cache-numchars. Authored-by: Uros Bojanic <157381213+uros-db@users.noreply.github.com> Signed-off-by: Kent Yao <yao@apache.org>
- Loading branch information