JuliaLang/julia
View on GitHubgeneralize our `BigFloat(::Float64)` method to more integer and floatingpoint types.
Open
#50,940 opened on Aug 16, 2023
bignumsgood first issueperformance
Repository metrics
- Stars
- (48,709 stars)
- PR merge metrics
- (Avg merge 20d 6h) (157 merged PRs in 30d)
Description
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).