Changeset: 6a2953b3c3dc for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6a2953b3c3dc
Modified Files:
gdk/gdk_hash.c
Branch: partioned-hash
Log Message:
Move potentially customizable constants to top of file.
diffs (31 lines):
diff --git a/gdk/gdk_hash.c b/gdk/gdk_hash.c
--- a/gdk/gdk_hash.c
+++ b/gdk/gdk_hash.c
@@ -15,6 +15,13 @@
#define HASH_VERSION 2 /* if mismatch, discard */
#define HASH_HEADER_SIZE 6 /* nr of size_t fields in header */
+/* we won't split the table into pieces smaller than HASHMINSIZE */
+#define HASHMINSIZE (1 << 20)
+
+/* we won't split the table into more than HASHMAXCHUNKS number of pieces */
+#define HASHMAXCHUNKSLOG 4
+#define HASHMAXCHUNKS (1 << HASHMAXCHUNKSLOG)
+
static BUN
HASHmask(BUN cnt, int tpe)
{
@@ -353,13 +360,6 @@ BATparthash(BAT *b, Hash *h, int piece)
}
}
-/* we won't split the table into pieces smaller than HASHMINSIZE */
-#define HASHMINSIZE (1 << 20)
-
-/* we won't split the table into more than HASHMAXCHUNKS number of pieces */
-#define HASHMAXCHUNKSLOG 4
-#define HASHMAXCHUNKS (1 << HASHMAXCHUNKSLOG)
-
gdk_return
BAThash(BAT *b)
{
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list