karl@mote.umb.edu ("Karl Berry.") (08/25/89)
I was doing some large Fourier transforms; in particular, the array I was allocating was 4MB. I was using GNU malloc, and I noticed that right after the call, the amount of memory being used was 8MB more, not 4! That is very bad. After looking through the code, it appeared that the reason was simply that the overhead involved made it want to allocate one more unit, i.e., twice as much memory. Even if that's not the reason, better behavior is still needed -- 4MB+1K I could accept. By ``GNU malloc'' I mean the malloc.c distributed with emacs (18.54). I read in the latest bulletin that Mike Haertel was working on a new malloc... karl@umb.edu