serenity
serenity copied to clipboard
AK: Make StringUtils to_int a bit faster
AK: Add a max_digits field to NumericLimits
This field describes the maximum amount of digits a number of that type can have in the decimal system. The fromular used is:
len(str(2**n -1))
LibLine: Use to_int instead of to_uint for time_t's
time_t is technically signed and this will allow us to make to_int and to_uint more restrictive
AK: Make to_int_* and to_uint_* functions more restrictive
AK: Do range checks earlier in to_[u]int
This avoids use of __builtins and speeds up the code by up to 10%. This also adds a more turned down version of the benchmark used to measure the speedup.
I think I have a solution, although it did cost a surprising amount of runtime....
As far as I could tell all of CI caught it
As far as I could tell all of CI caught it
Ah sorry I didn't check the CI before, good to know!
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!
This pull request has been closed because it has not had recent activity. Feel free to re-open if you wish to still contribute these changes. Thank you for your contributions!