Hacker News new | ask | show | jobs
by jackyb 3304 days ago
Does anybody know why Go binary-trees is so much slower than Java's?
1 comments

Binary-trees is allocation bottlenecked, and Java has bump pointer allocation where Go has slow allocation. The root cause being that Go's GC is non-moving so it can't do bump pointer allocation without fragmentation, so it has to do a whole bunch of computation to find a place for each node.
I see, thanks!