top | item 40705306

(no title)

SkeuomorphicBee | 1 year ago

This is also fine for any long-running processes and servers where the "vector" in question is not expected to shrink its allocation, which I would guess is the main use of vectors. Shrinking a vector's allocation is a niche use, with some finicky APIs, that most programmers never needed or touched.

discuss

order

simiones|1 year ago

While shrinking vectors may not be that common, creating and deleting vectors for short lived operations in a long lived program is certainly not.

account42|1 year ago

> Shrinking a vector's allocation is a niche use, with some finicky APIs, that most programmers never needed or touched.

Most programmers may not have touched those APIs but that doesn't mean that they didn't have a need for them.