JuliaMath / Primes.jl

Prime numbers in Julia
Other
99 stars 32 forks source link

WIP: increase speed of `Factorization` objects #115

Closed oscardssmith closed 2 years ago

oscardssmith commented 2 years ago

searchsortedfirst has much lower overhead than first(searchsorted). Once https://github.com/JuliaMath/Primes.jl/pull/114 is merged, I will rebase this on top of that, to make use of increment! which will be another 2x speedup for factorization since it won't have to do the searchsorted twice.