Please sign in to comment.
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...