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

AK: Store JSON keys and values as WTF-8 strings #2736

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yyny
Copy link
Contributor

@yyny yyny commented Dec 3, 2024

JSON can only contain WTF-8 encoded text, so it makes sense to type them as such. Also turn JSON keys into FlyStrings, to reduce memory usage and increase performance of lookups.

Part of the improvements made in #2493.

@yyny yyny requested a review from trflynn89 as a code owner December 3, 2024 20:15
@AtkinsSJ
Copy link
Member

AtkinsSJ commented Dec 4, 2024

This has conflicts.

The value will be `null` if the `Optional` is empty, and `T` otherwise.
JSON can only contain WTF-8 encoded text, so it makes sense to type
them as such. Also turn JSON keys into `FlyString`s, to reduce memory
usage and increase performance of lookups.
@yyny yyny force-pushed the deprecated-fly-string-smol branch from 818a7b9 to 315a18a Compare December 4, 2024 19:04
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