-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HugeInt performance degradation #37
Comments
Which compiler and target are you using? |
Delphi 10.4.2, Win32 Release, Win64 Release, Linux64 Release |
For reference, benchmarks using 64 bit / 32 bit and using Release / Debug settings using the current code base:
I will update this issue if any significant optimisations are made. |
I replaced HugeWordPowerAndMod() internals with https://github.com/rvelthuis/DelphiBigNumbers and got RSA decription 5.6 times faster. This is a very dirty hack, but I think, it makes sense to give it a try and do it better, either by joining the two libraries more tightly, or incorporating the algorithm from BigIntegers. The most surprising is that the internal data representation is very similar, it is enough to move bytes between buffers.
|
flcHugeInt has serious performance degradation in comparison with version 4. RSA 4096-bit keys generation take about 30 sec. using cHugeInt (version 4) and more than 3 minutes with flcHugeInt (current version). Generation 8192-bit keys take about 3 minutes using cHugeInt (version 4) and more then 3 hours with flcHugeInt (current version). In my test i used equal entropy source for both versions.
The text was updated successfully, but these errors were encountered: