From 41831cfa1ec9a17a0e152ab8abdc87c400fec69b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 1 Oct 2009 07:48:29 +0000 Subject: reduce structure size by packing together the bit booleans further, which shrinks the struct size from 64 to 56 bytes (12.5%) --- NEWS | 2 ++ libldetect.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8defa42..b69c7f7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- reduce memory footprint + Version 0.10.0 - 30 September 2009, Thierry Vignaud - do not display random revisions for USB devices diff --git a/libldetect.h b/libldetect.h index d2ea217..4578496 100644 --- a/libldetect.h +++ b/libldetect.h @@ -21,11 +21,11 @@ struct pciusb_entry { unsigned short usb_port; /* USB port */ unsigned short is_pciexpress:1; /* is it PCI express */ + int already_found:1; char *module; char *text; char* class; - int already_found:1; }; struct pciusb_entries { struct pciusb_entry *entries; -- cgit v1.2.1