public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Pedro Alves <pedro@palves.net>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Move non-dependent gdb::observers::observable::visit_state outside template
Date: Fri, 06 May 2022 18:39:05 -0600	[thread overview]
Message-ID: <87a6buuqfq.fsf@tromey.com> (raw)
In-Reply-To: <20220506163516.35194-1-pedro@palves.net> (Pedro Alves's message of "Fri, 6 May 2022 17:35:16 +0100")

>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:

Pedro> enum class visit_state is defined inside the class template
Pedro> observable, but it doesn't have to be, as it does not depend on the
Pedro> template parameters.  This commit moves it out, so that only one such
Pedro> type exists.  This reduces the size of a -O0 -g3 build for me by
Pedro> around 0.6%, like so:

Looks good to me.

Tom

      reply	other threads:[~2022-05-07  0:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 16:35 Pedro Alves
2022-05-07  0:39 ` Tom Tromey [this message]

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=87a6buuqfq.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@palves.net \
    /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).