Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Make DateTime creation about 1.6x as fast
- using Positional interface, possibly less pronounced with other inputs - if possible, don't use Range.in-range tests for testing whether in range - put leap-second check in separate private method - this should increase the chance of new-from-positional to be inlined - don't use attribute binding in the signature of SET-SELF - setting up things "manually" appears to be responsible for 10% improvement Problem is still that "new-from-positional" and "SET-SELF" are *not* getting speshed, let alone JITted. At least not according to the --profile if you do: DateTime.new(2018,1,5,12,30,0) for ^50000
- Loading branch information
Showing
1 changed file
with
45 additions
and
32 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