JuliaLang/julia

generalize our `BigFloat(::Float64)` method to more integer and floatingpoint types.

Open

#50.940 aperta il 16 ago 2023

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Julia (5773 fork)batch import
bignumsgood first issueperformance

Metriche repository

Star
 (48.709 star)
Metriche merge PR
 (Merge medio 20g 6h) (157 PR mergiate in 30 g)

Descrizione

https://github.com/JuliaLang/julia/pull/47546 made BigFloat(::Float64) about 2x faster, but basically the same optimization could be done for the common Integer types (Base.BitInteger64), Base.IEEEFloat and Rational (where the denominator is a power of 2).

Guida contributor