This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Optimizing of explicit temporary storage


On Oct 13, 2004, at 2:19 AM, Nick Ing-Simmons wrote:
Indeed! - I have actually written?

free(malloc(estimated_total_need));

To get expensive sbrk() call out of the way with one big one
rather than many smaller ones.

This code might already be broken the the malloc optimization that uses mmap for larger regions, and unmaps the large regions on free.? :-)


But, this is exactly the type of thing people can think about...? ?very relevant and obscure.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]