3 ms·
GC pauses aside can Go match the performance of Rust when coded properly? Would sorting an array of structs in Go be in the same ballpark as sorting the same si
by abraxas 7y ago
GC pauses aside can Go match the performance of Rust when coded properly? Would sorting an array of structs in Go be in the same ballpark as sorting the same sized array of structures in Rust? I don't know a whole lot about how Go manages the heap under the covers.
- cdoxsey 7y agoSure. That kind of code is very similar in both languages. Rust will probably be faster because it benefits from optimizations in LLVM that Go likely doesn't have. Go arrays of structs are contiguous, not indirect pointers.