This is the mail archive of the gcc-patches@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]

Re: cpplib: some performance improvements


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

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