|
![](/i/fill.gif) |
Mark Wagner wrote:
>
> I've been working on "malloc", "realloc", and "free" macros. However, the
> current version of "realloc" is very slow, since it works by creating a new
> array and copying the old one into it.
>
Yes, I've done that too, out of necessity.
It's slow, plus you want to resize it as seldom as possible so you must waste
memory on unnecessarily large arrays.
Margus
Post a reply to this message
|
![](/i/fill.gif) |