public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Lawrence Crowl <crowl@google.com>
To: Richard Guenther <richard.guenther@gmail.com>
Cc: Diego Novillo <dnovillo@google.com>,
	reply@codereview.appspotmail.com,        jason@redhat.com,
	gcc-patches@gcc.gnu.org
Subject: Re: [patch] Split Parse Timevar (issue4378056)
Date: Wed, 13 Apr 2011 20:57:00 -0000	[thread overview]
Message-ID: <BANLkTi=CSU1F9TQFe8x+BSB_5KKfwJxMZA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=HJtUViEAqaXCwZSa=XFaTxLH+Ww@mail.gmail.com>

On 4/13/11, Richard Guenther <richard.guenther@gmail.com> wrote:
> On Apr 12, 2011 Diego Novillo <dnovillo@google.com> wrote:
> > On Apr 12, 2011 Lawrence Crowl <crowl@google.com> wrote:
> > > This patch provides more finer, more precise compile time
> > > information.  I sent an advisory mail some time ago, and it
> > > was good then.  Please confirm for trunk.
> >
> > The patch looks fine to me, but of course it's Jason the one
> > you need an OK from.
>
> Pushing/popping timevars is not free.  What's the compile-time
> impact of this change (for -ftime-report, of course) - with small
> timed regions, does it not just return garbage because of clock
> precision issues and overhead of querying the clock iself?

I don't think there is any significant compile-time impact.

* The new phase timevars cover so much execution time as to have
unnoticible overhead.

* The new parser sub-timevars cover significant parsing work:
function body, struct body, enum body, template instantiation,
and overload resolution.  With the exception of enum bodies, all
are pretty heavyweight.  The overhead might grow from unnoticible
to insignificant.

* In some cases, the patch replaces a push/pop with a start/stop.
The performance difference between those routines is very small.

* Most other timevar calls have not changed, they are doing what
they did before, so no new overhead is introduced.

* The remaining calls were redundant, and the patch removes them,
so some existing overhead is removed.

-- 
Lawrence Crowl

  reply	other threads:[~2011-04-13 20:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12 18:50 Lawrence Crowl
2011-04-12 19:06 ` Diego Novillo
2011-04-13  9:19   ` Richard Guenther
2011-04-13 20:57     ` Lawrence Crowl [this message]
2011-04-20 23:33 ` Jason Merrill
2011-04-21 20:38   ` Diego Novillo
2011-04-22  0:40   ` Lawrence Crowl
2011-04-22  2:34     ` Jason Merrill
2011-04-23  0:05       ` Lawrence Crowl
2011-04-24  9:34         ` Jason Merrill
2011-04-27 19:18           ` Lawrence Crowl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=CSU1F9TQFe8x+BSB_5KKfwJxMZA@mail.gmail.com' \
    --to=crowl@google.com \
    --cc=dnovillo@google.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=reply@codereview.appspotmail.com \
    --cc=richard.guenther@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).