News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by anarazel on Tuesday February 04, 2020 @11:03PM (#22243906)
That's only true if you actually need to access more than a few elements at once. And if you never need to insert/delete to/from anywhere but the end.
Re:Why Discord is switching from Go to Rust by earthboundkid on Wednesday February 05, 2020 @07:17AM (#22246089)
Even if you need middle inserts but not a B-tree (weird), it’s still better to use a vector in most cases. Time to find the insertion point will dominate.