Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment: Use ByteStrings instead of Strings in protos #108

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

Ostrzyciel
Copy link
Member

I've noticed in profiling that a lot of the time is spent on computing the serialized sizes of strings... which is because the protobuf lib has to manually count all the code points because Java Strings are horrible – long story.

Let's see if this helps anything. If not, I will revert it.

WHY ARE THERE NO UTF-8 STRINGS IN JAVA? WHY???

I've noticed in profiling that a lot of the time is spent on computing the serialized sizes of strings... which is because the protobuf lib has to manually count all the code points because Java Strings are horrible – long story.

Let's see if this helps anything. If not, I will revert it.

WHY ARE THERE NO UTF-8 STRINGS IN JAVA? WHY???
@Ostrzyciel Ostrzyciel merged commit 55dc187 into main Jul 10, 2024
4 checks passed
@Ostrzyciel Ostrzyciel deleted the ostrzyciel/experiment-bytestrings branch July 10, 2024 18:40
Ostrzyciel added a commit that referenced this pull request Jul 11, 2024
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