public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@hack.frob.com>
To: elfutils-devel@lists.fedorahosted.org
Subject: Re: [PATCH 1/2] Add is_executable to Dwfl_Module.
Date: Tue, 09 Sep 2014 14:55:34 -0700	[thread overview]
Message-ID: <20140909215534.88CD12C39D8@topped-with-meat.com> (raw)
In-Reply-To: 20140909215150.GA16300@host2.jankratochvil.net

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

>    int segment;			/* Index of first segment table entry.  */
>    bool gc;			/* Mark/sweep flag.  */
> +  bool is_executable : 1;	/* Use Dwfl::executable_for_core?  */

If you're going to use a bitfield, then make every other bool in that
struct a bitfield too.  But it's not usually worthwhile.  It's
premature microoptimization that privileges memory over CPU, which
might not even be the right tradeoff any more.

             reply	other threads:[~2014-09-09 21:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09 21:55 Roland McGrath [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-09-22 17:28 Roland McGrath
2014-09-18 14:59 Jan Kratochvil
2014-09-18 14:56 Mark Wielaard
2014-09-11 19:00 Jan Kratochvil
2014-09-10 20:15 Mark Wielaard
2014-09-10 18:56 Mark Wielaard
2014-09-10  7:21 Jan Kratochvil
2014-09-09 21:51 Jan Kratochvil

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=20140909215534.88CD12C39D8@topped-with-meat.com \
    --to=roland@hack.frob.com \
    --cc=elfutils-devel@lists.fedorahosted.org \
    /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).