Re: branch-1_4 reduce memory footprint

"Gary V. Vaughan" <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
-----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      ())_.  [email protected]
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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.