Skip to content
Discussion options

You must be logged in to vote

Solution found using standard arithmetic expressions (using operators) that makes the builder approach obsolete.

Sample code, benchmarks and case studies for several number types can be found in the Test app if compiled for .NET 7.0.
Also BigInteger could use the approach, which would solve at least the memory waste problem.
Measured only 2% performance overhead to an ideal builder solution.
A detailed explanation of how it works will follow shortly in the BigRational Proposal discussion.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@c-ohle
Comment options

@c-ohle
Comment options

@huoyaoyuan
Comment options

@c-ohle
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@c-ohle
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by c-ohle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants