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

Optimize for bool type #31

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Conversation

udaken
Copy link
Contributor

@udaken udaken commented Aug 8, 2020

Boolean.ToString() returns a constant so there is no allocation, but there is a cost to convert it to UTF8.
That's why I used Utf8Formatter.TryFormat.

Other minor optimizations include.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2020

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Nov 7, 2020
@udaken
Copy link
Contributor Author

udaken commented Nov 9, 2020

Hi @neuecc, I hope you will review this PR.

@github-actions github-actions bot removed the stale label Nov 10, 2020
@neuecc
Copy link
Member

neuecc commented Nov 10, 2020

sorry for delayed response.
I'll check it after other project finished, please wait a moment.

@neuecc
Copy link
Member

neuecc commented Jan 8, 2021

good catch.
I'm happy to accept your PR.

@neuecc neuecc merged commit 1c80aa4 into Cysharp:master Jan 8, 2021
@udaken udaken deleted the Optimize-for-bool-type branch January 18, 2021 13:48
ThangwLee pushed a commit to WolffunGame/ZString that referenced this pull request May 26, 2023
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