Skip to content

more flexible + better benchmarking + Julia 1.x compliant#59

Closed
pdimens wants to merge 2 commits intoJuliaAstro:masterfrom
pdimens:master
Closed

more flexible + better benchmarking + Julia 1.x compliant#59
pdimens wants to merge 2 commits intoJuliaAstro:masterfrom
pdimens:master

Conversation

@pdimens
Copy link
Copy Markdown

@pdimens pdimens commented May 26, 2020

This PR uses the convert_coord() function in pdimens/PopGen.jl to make ten() faster and more flexible. Flexible in the sense that it can tolerate cardinal directions as well, such as "11 32 42S". In the current form, ten uses a deprecated version of replace and will not function for julia 1.x
Before:

julia> @btime ten("-10 26")
  2.135 μs (33 allocations: 1.52 KiB)
-10.433333333333334

After:

julia> @btime ten("-10 26")
  1.571 μs (18 allocations: 928 bytes)
-10.433333333333334

This PR uses the convert_coord() function in pdimens/PopGen.jl to make ten() faster and more flexible. Flexible in the sense that it can tolerate cardinal directions as well, such as "11 32 42S".
Before:
julia> @Btime ten("-10 26")
  2.135 μs (33 allocations: 1.52 KiB)-10.433333333333334

julia> @Btime ten("-10 26")
  1.571 μs (18 allocations: 928 bytes)-10.433333333333334
Comment thread src/ten.jl Outdated
@abhro
Copy link
Copy Markdown
Member

abhro commented Dec 24, 2025

The forked repository seems to have been deleted, and the changes (at least the Julia 1 compliance) seems to have been superseded. Closing

@abhro abhro closed this Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants