-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more float to string performance improvements
- some tuples used in grisu were heap allocated. the `buffer` element was not really needed. - fixed a type instability in Grisu.normalize - provide a good size hint for floats in print_to_string to avoid excess reallocation. before: ``` julia> @time for i=1:10^7;string(3.141592653);end 6.402762 seconds (80.00 M allocations: 2.831 GB, 3.91% gc time) ``` after: ``` julia> @time for i=1:10^7;string(3.141592653);end 4.038174 seconds (30.00 M allocations: 1.639 GB, 2.29% gc time) ```
- Loading branch information
1 parent
2b12e96
commit 53ecbaa
Showing
5 changed files
with
80 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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 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 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 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.
53ecbaa
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.
Cool!