Repository navigation
math.big: move from u32 to u60 digits - #25018
Conversation
|
Connected to Huly®: V_0.6-23535 |
|
I will move some functions to |
No, lets keep them in |
|
imho focus on fixing the failing tests |
|
I already have math.big ported to |
|
@tankf33der can you please check the performance and correctness with this PR too? |
|
Working. This will take time. Wait for me. |
Thank you 🙇🏻 . |
|
For me, the version from this PR is faster, except for the second |
|
The compile time has reduced though, interesting. |
|
The implementation works correctly. This is good. Run this code to have fun on master and PR branches: I suggest not looking at division performance for now because my Knuth implementation is waiting its turn to create a PR. |
|
Here's the Golang performance with the same numbers. |
|
Have you tried comparing to your u64 implementation? :-) |
It is definitely worse. Cannot be compared. @kbkpbot implementation is very successful, we need to advance it further and rely on it. This is a big step step forward. |


This PR:
integer.vdigit_bits)bench.This will use 64bit operations and it may improve performance.
TODO: Further optimization may focus on reducing memory allocation.