RFR: 8377427: Reduce substring allocations in Color.web(String, double) [v14]

Michael Strauß mstrauss at openjdk.org
Mon Feb 23 21:27:18 UTC 2026


On Sun, 22 Feb 2026 15:04:11 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> Color.web(string, double) parses a color string by creating substrings of the input. These string allocations can be removed.
>> 
>> CSS numbers are parsed by `CssNumberParser`, which parses CSS-compliant numbers using Lemire's algorithm.
>> 
>> There are no new tests for the `Color` class, since the existing tests already cover all relevant code paths.
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
> 
>   test binade boundaries

Sure.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2069#issuecomment-3947379436


More information about the openjfx-dev mailing list