Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster compile times with UnitSystems.jl #19

Open
chakravala opened this issue May 5, 2021 · 2 comments
Open

Faster compile times with UnitSystems.jl #19

chakravala opened this issue May 5, 2021 · 2 comments

Comments

@chakravala
Copy link

I read in a comment on JuliaMath/IrrationalConstants.jl#1 that you have compile time issues with this package, as it is slow. If that is an issue for you, I highly recommend using my UnitSystems.jl package, as it has very quick compilation times. Unfortunately, I was not able to respond directly to that discussion, since the Julia Stewarses have banned me from all their websites and repositories. If you need arbitrary precision, it should be possible to add as a feature to UnitSystems also, but in practice none of the physical constants are known beyond Float64 precision, so I did not implement it as of now.

@giordano
Copy link
Member

giordano commented May 5, 2021

The solution would simply be to have a composite data type instead of dozens of singletons, I just don't have the time/motivation to do it at the moment.

in practice none of the physical constants are known beyond Float64 precision

That's not true, as some constants are defined exactly, and some derived constants are multiplied by pi.

@chakravala
Copy link
Author

chakravala commented May 5, 2021 via email

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

No branches or pull requests

2 participants