You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is mostly relevant for conversion methods that are larger than a handful of lines. It should be possible to help the compiler de-duplicate a lot of code where the same methods are used with different type parameters. Parameters such as white point or RGB standard don't affect the code more than changing a few constants, so they should be possible to "outline" as a function that is only generic over the component type:
This avoids generating nearly identical copies for each white point that is used. The exact way of passing the data around is up to what works best for the situation.
The text was updated successfully, but these errors were encountered:
This is mostly relevant for conversion methods that are larger than a handful of lines. It should be possible to help the compiler de-duplicate a lot of code where the same methods are used with different type parameters. Parameters such as white point or RGB standard don't affect the code more than changing a few constants, so they should be possible to "outline" as a function that is only generic over the component type:
This avoids generating nearly identical copies for each white point that is used. The exact way of passing the data around is up to what works best for the situation.
The text was updated successfully, but these errors were encountered: