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]

Re: Some experiments with cpplib's output end


On Thu, Sep 27, 2001 at 07:17:05AM -0700, mike stump wrote:
> > Date: Thu, 27 Sep 2001 07:44:02 +0100
> > From: Neil Booth <neil@daikokuya.demon.co.uk>
> 
> > I wonder if we're better something simple and braindead, like our
> > own scratch buffer of size roughly 8K say, that we manage ourselves
> > and only dump (probably bypassing stdio) when it's about to
> > overflow?
> 
> Gosh, I think someone wrote a library like this at one time, maybe we
> could hunt around and see if we can find it and use it.  I thunk it
> was called stdio if I recall.

The whole point of this series of experiments was to see if we could
get better performance out of standalone cpplib without going so far
as to reimplement stdio.

A custom implementation is always going to be faster, since it will
not have any of the overhead stdio incurs for being generally useful.
The question is whether this is worth the trouble of implementing and
debugging it.  I'm currently willing to stop at the 15% or so
improvements I get from the changes suggested by my experiments; cpp0
is mostly not used these days, so its performance is less important.
On the other hand, if we had evidence that cc1 was wasting lots of
time in stdio doing assembly output, I would reconsider.

zw


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