Skip to content

Optimize for bool type#31

Merged
neuecc merged 2 commits intoCysharp:masterfrom
udaken:Optimize-for-bool-type
Jan 8, 2021
Merged

Optimize for bool type#31
neuecc merged 2 commits intoCysharp:masterfrom
udaken:Optimize-for-bool-type

Conversation

@udaken
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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