Skip to content

[GR-77959] Cache utf8 bytes in native. - #1050

Closed
graalvmbot wants to merge 2 commits into
masterfrom
fa/GR-77959/cache_utf8_bytes
Closed

[GR-77959] Cache utf8 bytes in native.#1050
graalvmbot wants to merge 2 commits into
masterfrom
fa/GR-77959/cache_utf8_bytes

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

We already did caching of UTF-8 bytes once they were requested but our approach was a bit too heavy since we created a bytes object holding the UTF-8 data and forced the storage to native.

Now, I'm storing (just as CPython) the bytes in a native buffer and can so use it (if available) without an upcall.

Further, we now also make use of the fact that pure ASCII codepoints can also be reused without any transcoding.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 30, 2026
@graalvmbot graalvmbot closed this Jul 30, 2026
@graalvmbot
graalvmbot deleted the fa/GR-77959/cache_utf8_bytes branch July 30, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants