Home

<contactmayankjain@gmail.com> wrote in message
news:1187626911.559829.298860@i38g2000prf.googlegroups.com...
> Hi,
>
> Its said that one should avoid dynamic allocation of memory, as it de-
> fragment the memory into small chunks and allocation of memory is a
> costly process in terms of efficiency. So what is the best solution to
> handle to situation in which we need to allocate memory at run time.

Dynamic allocation is the ONLY solution to allocating memory at run time
(unless you use a language that provides garbage collection). If you have
problems with fragmentation then the only thing you can do is smarter
dynamic allocation, which requires knowledge of the allocation requirements
of your application.

previous
next

Re: any g++ compilation warning to detect empty if statement
Re: template class question (more elegant soln)
Re: How to create a file on users XP desktop
Re: M2Crypto 0.18 - new version, same old build bugs - more details
Re: throw operator
Niechciane i Zapomniane
Fundacja Iskierka
Dzieci Niczyje
Podaruj Zycie
Mam Marzenie