|
|
> Warp wrote:
>> It's certainly not a good idea to create, resize and destroy 6 vectors
>> at each iteration.
>
> And in a well-tuned GC system, that's less of a problem, see? :-)
Somebody uses a C++ feature inefficiently, and that proves GC is better??
> That's part of the reason these languages *do* allocate everything on
> the heap - it's not as much of a problem. Honestly, I'm not 100% sure
> why, but when folks actually measure, it often works out that way.
A C++ vector is not kept in the stack. Well, the vector itself is
(bookkeeping info) but the data inside is heap-allocated by the vector
AFAIK.
Post a reply to this message
|
|