On Thu, 10 Apr 2008 17:33:21 +0300, Juha Nieminen
> However, part of my C++ programming style just naturally also avoids
>doing tons of news and deletes in tight loops (which is, again, very
>different from eg. Java programming where you basically have no choice)
Howeever, Java allocates new memory blocks on it's internal heap
(which is allocated in huge chunks from the OS). In this way, in most
of the cases it bypasses memory allocation mechanisms of the
underlying OS and is very fast. In C++, each "new" allocation request
will be sent to the operating system, which is slow.