drop the alignment to 4 bytes - this makes tdb more space efficient
authorAndrew Tridgell <tridge@samba.org>
Mon, 3 Jan 2000 00:52:14 +0000 (00:52 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 3 Jan 2000 00:52:14 +0000 (00:52 +0000)
and doesn't seem to affect performance

source/tdb/tdb.c

index 8ed3dd3bacb8333f711574a661b398f875952a40..89c1368c1280e1b6f932f017f77e517e4a036514 100644 (file)
@@ -37,7 +37,7 @@
 #define TDB_VERSION (0x26011967 + 1)
 #define TDB_MAGIC (0x26011999U)
 #define TDB_FREE_MAGIC (~TDB_MAGIC)
-#define TDB_ALIGN 32
+#define TDB_ALIGN 4
 #define MIN_REC_SIZE (2*sizeof(struct list_struct) + TDB_ALIGN)
 #define DEFAULT_HASH_SIZE 512
 #define TDB_PAGE_SIZE 0x2000