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

Backports for 0.12.11 #549

Merged
merged 7 commits into from May 11, 2024

Conversation

kimikage
Copy link
Collaborator

@kimikage kimikage commented May 11, 2024

I cherry-picked the commits that had no breaking changes and could be merged automatically.
Improvement in speed may be limited due to partial backporting.
Please note especially the change in #441.

This also optimizes conversion methods and changes the results slightly.
…iaGraphics#441)

This slightly changes the results for colors with low-precision eltypes (e.g. `N0f8`).
`pow12_5` is used in the `RGB{Float64}`-->`XYZ` conversion.
This ensures sufficient accuracy (~2 ULP) in the range of [0.09, 1],
which is typically required for the conversion.

`@inline` could be a workaround for the problem with precompilation.
…t32)` (JuliaGraphics#485)

`pow5_12(::Float64)` is used in the `XYZ{Float64}`-->`RGB` conversion.
This ensures sufficient accuracy (~3 ULP) in the range of [0.003, 1],
which is typically required for the conversion.

Previously, even conversions from `XYZ{::Float32}` were calculated with `Float64`.
This changes the conversions so that `pow5_12(::Float32)` is used.
However, `pow5_12(::Float32)` still be calculated within `Float64` for accuracy.

`@inline` could be a workaround for the problem with precompilation.
This makes the cube root to be inlined to make it suitable for vectorization.
This is intended to reduce precompilation problems rather than increase the speed.
Copy link

codecov bot commented May 11, 2024

Codecov Report

Attention: Patch coverage is 99.13793% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 97.26%. Comparing base (1ca37dd) to head (2753525).
Report is 5 commits behind head on release-0.12.

Files Patch % Lines
src/utilities.jl 98.64% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-0.12     #549      +/-   ##
================================================
+ Coverage         90.89%   97.26%   +6.37%     
================================================
  Files                 9       10       +1     
  Lines               999     1097      +98     
================================================
+ Hits                908     1067     +159     
+ Misses               91       30      -61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kimikage kimikage merged commit 0dafd5b into JuliaGraphics:release-0.12 May 11, 2024
18 of 19 checks passed
@kimikage kimikage deleted the backports_for_0.12.11 branch May 11, 2024 13:58
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.

None yet

1 participant