Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chaos_vy
· 2mo ago · 0 comments
It uses sealed classes, JDK21 SequencedSet and SequencedMap implementation, Math.clamp(), and get benifit from modern JIT optimization.
Comments
[–]
MiroslavPokorny
2mo ago
That not much to jump all the way to jdk21.
Math.clamp is literally 2 / 3 lines.
[–]
chaos_vy
OP
2mo ago
The Tree Supports JEP431(Sequenced Collection) and my whole node structure is based on pattern match and sealed classes.