[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: branch-1_4 reduce memory footprint
From: |
Gary V. Vaughan |
Subject: |
Re: branch-1_4 reduce memory footprint |
Date: |
Tue, 17 Oct 2006 14:48:51 -0500 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Eric,
On 10 Oct 2006, at 11:34, Eric Blake wrote:
I had no idea we were hammering malloc this badly. I temporarily
instrumented
xmalloc to show usage patterns, then ran 'M4=src/m4 autoreconf -v'
to profile
the m4 configure script before and after this patch.
Nice analysis! And nice patch too.
Rene himself said that he thinks we abuse obstacks in the current
implementation,
though I never took the time to figure out how to comb out the hair.
on head, I may experiment with adding an obstack_regrow macro that
I documented in the bug-m4 list.
That would be really interesting to see. Especially if it finds its way
back to glibc eventually :-)
Cheers,
Gary
- --
Gary V. Vaughan ())_. address@hidden
Research Scientist ( '/ http://blog.azazil.net
GNU Hacker / )= http://www.gnu.org/software/{libtool,m4}
Technical Author `(_~)_ http://sources.redhat.com/autobook
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFNTOmFRMICSmD1gYRAsLtAKCkaqiwYoUQor5LG6Yt5WopiM4UrACZAdBL
EBlYOioojUnA7G0CsJAw130=
=exdd
-----END PGP SIGNATURE-----