bug-gnu-pspp
[Top][All Lists]
Advanced

[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:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-1)

URL:
  <http://savannah.gnu.org/bugs/?24597>

                 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

    _______________________________________________________

Details:

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
pointer

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

* 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:

  <http://savannah.gnu.org/bugs/?24597>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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