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

fix: make lazyvalue sync #47

Merged
merged 2 commits into from
Dec 26, 2023
Merged

fix: make lazyvalue sync #47

merged 2 commits into from
Dec 26, 2023

Conversation

liuq19
Copy link
Collaborator

@liuq19 liuq19 commented Dec 22, 2023

Origin LazyValue has a UnsafeCell, to be used for parsing string which has escaped chars. This makes the parsing lazy but also makes it !Sync.

In the new LazyValue, we will first parse the string which has escaped chars and store it in the Arc<str>. It will be Sync.

@liuq19 liuq19 marked this pull request as ready for review December 22, 2023 11:25
@liuq19 liuq19 enabled auto-merge (rebase) December 22, 2023 11:31
@liuq19 liuq19 disabled auto-merge December 22, 2023 12:07
@liuq19 liuq19 enabled auto-merge (rebase) December 26, 2023 03:11
@liuq19 liuq19 disabled auto-merge December 26, 2023 03:11
@liuq19 liuq19 merged commit 089777c into main Dec 26, 2023
8 checks passed
@liuq19 liuq19 deleted the fix/lazyvalue branch December 26, 2023 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant