public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] minor cleanups for cmd_list_element
@ 2014-01-13 16:29 Tom Tromey
  2014-01-13 16:29 ` [PATCH 2/2] better packing for command struct Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Tromey @ 2014-01-13 16:29 UTC (permalink / raw)
  To: gdb-patches

While working on something else, I happened to notice that
cmd_list_element is packed poorly.

This little series first cleans up cmd_list_element by replacing a
flag field with bitfields.  I think the resulting code is clearer.

The second patch trivially rearranges cmd_list_element.  The savings
are modest -- around 50k for "gdb --batch", the best possible case --
but I don't think there is any downside.

Built and regression tested on x86-64 Fedora 18.  I also ran
check-perf and compared the results; the memory use is down a bit and
all the performance differences are just noise.

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-20 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13 16:29 [PATCH 0/2] minor cleanups for cmd_list_element Tom Tromey
2014-01-13 16:29 ` [PATCH 2/2] better packing for command struct Tom Tromey
2014-01-13 16:29 ` [PATCH 1/2] convert flags to bitfields Tom Tromey
2014-01-20 16:10 ` [PATCH 0/2] minor cleanups for cmd_list_element Tom Tromey

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).