Integrated: 8377427: Reduce substring allocations in Color.web(String, double)
Michael Strauß
mstrauss at openjdk.org
Wed Feb 25 11:30:17 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. 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.
This pull request has now been integrated.
Changeset: 5699430e
Author: Michael Strauß <mstrauss at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/5699430e3d6d6d3bf5c818a9c1c19bf71028cc21
Stats: 1443 lines in 4 files changed: 1237 ins; 24 del; 182 mod
8377427: Reduce substring allocations in Color.web(String, double)
Co-authored-by: Andy Goryachev <angorya at openjdk.org>
Reviewed-by: angorya, jhendrikx
-------------
PR: https://git.openjdk.org/jfx/pull/2069
More information about the openjfx-dev
mailing list