From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2387 invoked by alias); 13 Jan 2014 16:29:04 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 2246 invoked by uid 89); 13 Jan 2014 16:29:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Jan 2014 16:29:02 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0DGSvgg031326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 13 Jan 2014 11:28:57 -0500 Received: from barimba.redhat.com (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s0DGSuLv012713 for ; Mon, 13 Jan 2014 11:28:57 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 0/2] minor cleanups for cmd_list_element Date: Mon, 13 Jan 2014 16:29:00 -0000 Message-Id: <1389630533-28327-1-git-send-email-tromey@redhat.com> X-SW-Source: 2014-01/txt/msg00316.txt.bz2 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