On Tue, 24 Mar 2026 17:53:11 GMT, Marius Hanl <[email protected]> wrote:

>> no, effectively done by the `BitSet`
>
> I thought so too. But wouldn't we save some `BitSet` creations then?

`distinct()` uses a temporary HashSet to track the entries, which conveys all 
the overhead of the collection, hashing, and so on. 

I could test it later tonight, but I am virtually certain `distinct` will slow 
things down (not to mention additional memory usage and garbage collection).

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2100#discussion_r2983531996

Reply via email to