RFR: 8377427: Reduce substring allocations in Color.web(String, double)
Andy Goryachev
angorya at openjdk.org
Mon Feb 9 23:08:00 UTC 2026
On Sun, 8 Feb 2026 04:24:33 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> Color.web(string, double) parses a color string by creating substrings of the input. Almost all of these string allocations can be removed, except for an invocation of `Double.parseDouble(String)`, which doesn't have an overload that accepts a sub-range of the input string.
>
> There are no new tests for this enhancement, since the existing tests already cover all relevant code paths.
+1
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2069#issuecomment-3874340681
More information about the openjfx-dev
mailing list