Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g0TJ3TW20618 for linux-xfs-outgoing; Tue, 29 Jan 2002 11:03:29 -0800 Received: from scare.vieo.com ([63.231.179.33]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g0TJ2NY19650 for ; Tue, 29 Jan 2002 11:02:23 -0800 Received: from scare.vieo.com (localhost [127.0.0.1]) by scare.vieo.com (8.12.1/8.12.1) with ESMTP id g0THp8Ku004751 for ; Tue, 29 Jan 2002 11:51:08 -0600 Received: (from cattelan@localhost) by scare.vieo.com (8.12.1/8.12.1/Submit) id g0THp897004750 for linux-xfs@oss.sgi.com; Tue, 29 Jan 2002 11:51:08 -0600 Message-Id: <200201291751.g0THp897004750@scare.vieo.com> Date: Tue, 29 Jan 2002 12:53:54 +1100 From: Nathan Scott Subject: Re: Reduce XFS footprint (was Re: TAKE - remove a function xfs added to filemap.c Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Status: O Content-Length: 1102 Lines: 38 On Sat, Jan 26, 2002 at 01:59:15PM -0600, Stephen Lord wrote: > Ralf G. R. Bergs wrote: > > >>You could try editing xfs_types.h and changing > ... > It does compile and run, and you save about 45K in code size by doing it, > so not too much. You can also edit xfs_macros.h and define WANT_SPACE_C > to 1 (replace the existing definition). This turns a lot of inline > macros into > function calls - it will be slower, but it is another 10K less code - > again, not > very much. > Another thing we could try is to make support for v1 dirs compile-time conditional (since noone/very few people will be using this), this might save a bit more space. I think the code is all accessed via function pointers already, so the points of abstraction should be clearly defined. > So and smp build (in 2.5) went from > > text data bss dec hex filename > 520994 4896 2080 527970 80e62 fs/xfs/xfs.o > > to > text data bss dec hex filename > 487334 4896 2080 494310 78ae6 fs/xfs/xfs.o > > with these two build changes. > > Steve > > -- Nathan