Skip to content
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

Consider the possibility of applying fast multiplication algorithms when raising to a power. #14

Open
TheSquidCombatant opened this issue Nov 5, 2023 · 0 comments
Labels
average This may take a few days medium This requires being a programmer

Comments

@TheSquidCombatant
Copy link
Owner

Consider the possibility of applying fast multiplication algorithms when [raising to a power](Consider the possibility of applying fast multiplication algorithms when raising to a power. I mean the Karatsuba algorithm in particular.

When I implemented it, I was able to get a noticeable performance increase only when multiplying numbers from 4 MB size or more: 17 seconds with normal multiplication and 15 seconds with Karatsuba multiplication or something like that. For values less than 4 MB there was a slowdown due to additional algorithm overhead.

@TheSquidCombatant TheSquidCombatant added medium This requires being a programmer hard This requires being not only a programmer, but also mathematics average This may take a few days and removed hard This requires being not only a programmer, but also mathematics labels Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
average This may take a few days medium This requires being a programmer
Projects
None yet
Development

No branches or pull requests

1 participant