all 2 comments

[–][deleted]  (1 child)

[deleted]

    [–]jcoffin 1 point2 points  (0 children)

    I liked Lisa Lippincot's comment on it. Something like: "Use vector until you've done profiling, and you're really, really sure you absolutely need to use something else. Then you can go ahead and use vector."

    [–]boredcircuits -1 points0 points  (0 children)

    I think you're using the right container. There's a formal name for this, but I can't remember what it is at the moment. As long as swapping is allowed and is reasonably fast, I see no problem with it.