Skip to content

Optimize arithmetic between BigFloat and integers#14944

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:perf/bigfloat-int
Aug 26, 2024
Merged

Optimize arithmetic between BigFloat and integers#14944
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:perf/bigfloat-int

Conversation

@HertzDevil
Copy link
Contributor

Utilizes the mpf_*_ui and mpf_ui_* functions provided by GMP / MPIR to reduce the number of intermediate BigFloat allocations.

@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 25, 2024
@straight-shoota straight-shoota merged commit bd49e2e into crystal-lang:master Aug 26, 2024
@HertzDevil HertzDevil deleted the perf/bigfloat-int branch August 27, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants