[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #24597] Reduce size of struct variable

From: Ben Pfaff
Subject: PSPP-BUG: [bug #24597] Reduce size of struct variable
Date: Sat, 18 Oct 2008 03:27:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061205 Iceweasel/ (Debian-


                 Summary: Reduce size of struct variable
                 Project: PSPP
            Submitted by: blp
            Submitted on: Fri Oct 17 20:27:48 2008
                Category: Compilation/Portability
                Severity: 1 - Wishlist
                  Status: None
             Assigned to: blp
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
                  Effort: 0.00



On x86-32, struct variable is 184 bytes.  This could be reduced considerably:

* 68 bytes of that is the variable name, which could be allocated via

* 24 bytes is print and write formats, which really only need 3 or 4 bytes

* 32 bytes is missing values, which should be reducible to a pointer or at
most to 8 bytes

* Alignment, measurement, and, leave each occupy 4 bytes and none needs more
than 1.

* Width and display width shouldn't need more than 2 bytes each.

It should therefore be possible to reduce its size to something closer to 64
bytes (modulo any wastage from allocatig the name via pointer).  This may be a
useful savings when we start allocating large numbers of variables.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]