Changeset: 77636200f218 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=77636200f218
Modified Files:
gdk/gdk_hash.c
Branch: partioned-hash
Log Message:
Align size of hash partitions with those used by mitosis.
Mitosis just divides the count by the number of partitions, rounding
down, meaning that the last partition can be larger. We now do the
same.
diffs (12 lines):
diff --git a/gdk/gdk_hash.c b/gdk/gdk_hash.c
--- a/gdk/gdk_hash.c
+++ b/gdk/gdk_hash.c
@@ -131,7 +131,7 @@ HASHnew(Heap *hp, int tpe, int pieces, B
{
Hash *h;
int width = HASHwidth(cap);
- BUN chunk = (count + pieces - 1) / pieces;
+ BUN chunk = count / pieces;
BUN mask = HASHmask(chunk, tpe);
if (count == 0 || pieces == 1) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list