On Friday, February 14, 2020 at 6:24:08 PM UTC+1, Robert Engels wrote: > > > Yes, and when you store value objects in a vector and it is resized, it is > very expensive as you need to make copies of "large objects", vs a "pointer > to an object". >
A paged vector neither copies nor moves the objects when it is resized. Direct access to memory offers some optimization opportunities that are not directly possible in a virtual machine programming language. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/bfe34744-2d1e-47bb-8ac5-2b18e42bcdd2%40googlegroups.com.