3 ms·
It uses sealed classes, JDK21 SequencedSet and SequencedMap implementation, Math.clamp(), and get benifit from modern JIT optimization.
by chaos_vy 23d ago
It uses sealed classes, JDK21 SequencedSet and SequencedMap implementation, Math.clamp(), and get benifit from modern JIT optimization.
- MiroslavPokorny 23d agoThat not much to jump all the way to jdk21. Math.clamp is literally 2 / 3 lines.
- chaos_vy 23d agoThe Tree Supports JEP431(Sequenced Collection) and my whole node structure is based on pattern match and sealed classes.