-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
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.
That's not true, as some constants are defined exactly, and some derived constants are multiplied by |
Aha, well my main goal with UnitSystems is to have physics constants loaded as fast as possible. I may look into making a separate variant of my package with error bounds and arbitrary precision, but this would make the package load times slower, so it would have to be a separate package most likely, unless there is a way to do it without slowing load times.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: