-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8310929: Optimization for Integer.toString #14699
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
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
98bdd15
8310929: Optimization for Integer.toString
wenshao f0dab02
postpone the division
wenshao ac650f7
improve based on getChars
wenshao cce5a1a
explicitly specify the endianness
wenshao 827213e
optimization for :
wenshao f304887
format code
wenshao bf9059b
format code & comment
wenshao 8a1d1c0
simplify code
wenshao 34e7191
code format
wenshao d07fde6
private static final Unsafe
wenshao 8663f3d
use upper case for static final field
wenshao 9a8cf2a
Adapt endian in pack
liach 75abb0e
Integer/Long toString test against compact strings
liach 6eb9150
assert bounds check
wenshao c2b1887
UTF16 & Latin1 use same lookup table
wenshao 0d149fa
remove unused import
wenshao ed1c58b
move Integer/Long.getChars to StringLatin1
wenshao f37ed8a
add comments
wenshao 18904a9
update copyright date info
wenshao c0f42a7
use ByteArrayLittleEndian
wenshao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an improvement since it better groups these latin1 formatting methods together. Add a copy of the comment from
StringUTF16about bound-checking here?