Skip to content

using Requires for Statistics #255

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

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

johnnychen94
Copy link
Collaborator

Because Statistics is no longer part of the Julia sysimage, the package loading
time of FixedPointNumbers is then donimated by Statistics. This commit uses
Requires to conditionally add the needed method without making more one-line
package. This, of course, adds some additional overhead but I do believe it's
currently the best tradeoff until we have first-class support on conditional
package loading.

@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

Merging #255 (0b8bcea) into master (0b8bcea) will not change coverage.
The diff coverage is n/a.

❗ Current head 0b8bcea differs from pull request most recent head 453ecaa. Consider uploading reports for the commit 453ecaa to get more accurate results

@@           Coverage Diff           @@
##           master     #255   +/-   ##
=======================================
  Coverage   93.05%   93.05%           
=======================================
  Files           6        6           
  Lines         763      763           
=======================================
  Hits          710      710           
  Misses         53       53           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b8bcea...453ecaa. Read the comment docs.

@johnnychen94 johnnychen94 marked this pull request as draft July 7, 2022 04:23
Because Statistics is no longer part of the Julia sysimage, the package loading
time of FixedPointNumbers is then donimated by Statistics. This commit uses
Requires to conditionally add the needed method without making more one-line
package. This, of course, adds some additional overhead but I do believe it's
currently the best tradeoff until we have first-class support on conditional
package loading.
@johnnychen94 johnnychen94 marked this pull request as ready for review July 7, 2022 09:30
@johnnychen94
Copy link
Collaborator Author

johnnychen94 commented Jul 10, 2022

I'm merging this, but we won't be able to make a new release because many breaking changes have been introduced since the last release. We need to sort out and finish what's planned for 0.9.0.

This is why I've tagged a dev version #258 to avoid a breaking patch release by accident.

@johnnychen94 johnnychen94 merged commit 51b1838 into JuliaMath:master Jul 10, 2022
@johnnychen94 johnnychen94 deleted the jc/requires branch July 10, 2022 02:16
kimikage added a commit that referenced this pull request Apr 6, 2024
kimikage added a commit that referenced this pull request Apr 6, 2024
@kimikage kimikage mentioned this pull request Apr 30, 2024
38 tasks
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.

2 participants