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

json2: reorganize encode string #20862

Merged
merged 11 commits into from
Feb 18, 2024
Merged

json2: reorganize encode string #20862

merged 11 commits into from
Feb 18, 2024

Conversation

enghitalo
Copy link
Contributor

@enghitalo enghitalo commented Feb 18, 2024

Next PRs

  • fix buf.grow_cap(s.len) or make buf.ensure_cap(buf.len + s.len) public
  • find a way to improve the code bellow
if char_len == 1 {
	buf << chr // this is very slow, of course
} else {
	handle_multi_byte_char(e, mut buf, s[i..i + char_len])
}

@spytheman spytheman merged commit f472355 into vlang:master Feb 18, 2024
42 checks passed
@enghitalo enghitalo deleted the json2/refactor-encode-string branch February 18, 2024 14:22
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