-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Built-in u128 performance compared to extprim crate #39078
Copy link
Copy link
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a performance bug report.
This little program solves a problem derived from this (a ten times larger problem):
https://projecteuler.net/problem=55
The solution (this is not the fastest solution for this problem, but it's a easy to understand one):
On my PC it runs in about 1.12 seconds.
Using an external crate for the u128 bit values, with the same code (extprim = "1.1.0"):
This runs in about 0.72 seconds.