forked from tc39/proposal-temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polyfill: Avoid BigInt math in BalanceTime
Nanosecond and microsecond might not be safe integers, but we can use the power-of-10-divmod function in math.mjs to divmod them by 1000. For all the other components we can just use Number math. This is no longer necessary to speed up the slow test262 test since we elminated the BalanceTime call already, but since BalanceTime was so dramatically slow this is probably a good idea anyway. This knocks about 15-20 seconds off the total execution time of the test262 suite.
- Loading branch information
Showing
1 changed file
with
47 additions
and
36 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