From harmony-dev-return-2126-apmail-incubator-harmony-dev-archive=incubator.apache.org@incubator.apache.org Wed Oct 05 17:09:11 2005 Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 56736 invoked from network); 5 Oct 2005 17:09:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2005 17:09:10 -0000 Received: (qmail 63080 invoked by uid 500); 5 Oct 2005 13:05:07 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 63017 invoked by uid 500); 5 Oct 2005 13:05:07 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 63006 invoked by uid 99); 5 Oct 2005 13:05:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2005 06:05:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [150.203.2.41] (HELO anumail1.anu.edu.au) (150.203.2.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2005 06:05:09 -0700 Received: from smtphost.anu.edu.au (stats.anu.edu.au [150.203.2.50]) by anumail1.anu.edu.au (8.13.4/8.13.4) with ESMTP id j95D4f0B019677 for ; Wed, 5 Oct 2005 23:04:41 +1000 (EST) Received: from sqmail.anu.edu.au (sqmail.anu.edu.au [150.203.2.99]) by smtphost.anu.edu.au (8.13.4/8.13.4) with ESMTP id j95D4egJ027911 for ; Wed, 5 Oct 2005 23:04:40 +1000 (EST) Received: from 202.55.156.130 (SquirrelMail authenticated user u3401953) by sqmail.anu.edu.au with HTTP; Wed, 5 Oct 2005 23:04:40 +1000 (EST) Message-ID: <62376.202.55.156.130.1128517480.squirrel@sqmail.anu.edu.au> In-Reply-To: <1D20E04B-BEC0-4015-8126-13ADFDF0A843@apache.org> References: <1D20E04B-BEC0-4015-8126-13ADFDF0A843@apache.org> Date: Wed, 5 Oct 2005 23:04:40 +1000 (EST) Subject: Re: opinions on structure packing in C? From: "Robin Garner" To: harmony-dev@incubator.apache.org User-Agent: SquirrelMail/1.4.4-xss MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.1.0.0, Antispam-Data: 2005.10.5.9 internal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > So how do people deal with this these days? I know fashions change, > and I haven't done C in anger for > 6 years... (I still have the > shakes when looking at it - I'm past the screaming stage...) "Premature optimization is the root of all evil." If struct packing produces a measurable speedup, do it; if not, don't. But actually take the time to measure it. Robin