On Tue, 10 Mar 2026 14:51:35 GMT, Eirik Bjørsnøs <[email protected]> wrote:

> I did ponder a while how the PR code could be condensed, but nothing 
> promising came out of that.

After a some more pondering and a sip of kombucha I came up with an 
implementation which is denser while retaining  the performance improvements.

The trick is to normalize empty components to "" first which simplifies 
checking for empty componeents by using reference comparisons. 

Take a look and let me know how you like this version.

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

PR Comment: https://git.openjdk.org/jdk/pull/30151#issuecomment-4034344699

Reply via email to