Changeset: 9851334999c9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9851334999c9
Modified Files:
        gdk/gdk_bat.c
        gdk/gdk_private.h
Branch: default
Log Message:

Removed unused function BATguess.


diffs (49 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -377,33 +377,8 @@ BATattach(int tt, const char *heapfile, 
  * If the BAT runs out of storage for BUNS it will reallocate space.
  * For memory mapped BATs we simple extend the administration after
  * having an assurance that the BAT still can be safely stored away.
- *
- * Most BAT operations use a BAT to assemble the result. In several
- * cases it is rather difficult to give a precise estimate of the
- * required space.  The routine BATguess is used internally for this
- * purpose.  It balances the cost of small BATs with their probability
- * of occurrence.  Small results BATs are more likely than 100M BATs.
- *
- * Likewise, the routines Hgrows and Tgrows provides a heuristic to
- * enlarge the space.
  */
 BUN
-BATguess(BAT *b)
-{
-       BUN newcap;
-
-       BATcheck(b, "BATguess", 0);
-       newcap = b->batCount;
-       if (newcap < 10 * BATTINY)
-               return newcap;
-       if (newcap < 50 * BATTINY)
-               return newcap / 2;
-       if (newcap < 100 * BATTINY)
-               return newcap / 10;
-       return newcap / 100;
-}
-
-BUN
 BATgrows(BAT *b)
 {
        BUN oldcap, newcap;
diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -65,8 +65,6 @@ struct BATstore {
        __attribute__((__visibility__("hidden")));
 __hidden gdk_return BATgroup_internal(BAT **groups, BAT **extents, BAT 
**histo, BAT *b, BAT *g, BAT *e, BAT *h, int subsorted)
        __attribute__((__visibility__("hidden")));
-__hidden BUN BATguess(BAT *b)
-       __attribute__((__visibility__("hidden")));
 __hidden void BATinit_idents(BAT *bn)
        __attribute__((__visibility__("hidden")));
 __hidden BAT *BATload_intern(bat bid, int lock)
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to