This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: some performance improvements
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: cpplib: some performance improvements
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 10 Jul 2000 11:23:43 -0400
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000704222958.E274@wolery.cumb.org>
On Tue, Jul 04, 2000 at 10:29:58PM -0700, Zack Weinberg wrote:
> cpplib currently burns ~20% of execution time inside malloc, because
> it allocates thousands of tiny objects. This patch switches three of
> the five most frequent callers of malloc to obstack allocation. The
> other two require more work; unfortunately they're the largest two.
Just a note: This effectively will mean obstacks are still here to stay for
the compiler backends (at least those backends that will ultimately use the
integrated preprocessor).
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482