On Sun, 8 Feb 2026 04:24:33 GMT, Michael Strauß <[email protected]> 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ß <[email protected]>
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 <[email protected]>
Reviewed-by: angorya, jhendrikx

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

PR: https://git.openjdk.org/jfx/pull/2069

Reply via email to