Changeset: 821a29326ca7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=821a29326ca7
Modified Files:
        monetdb5/mal/mal_recycle.c
Branch: default
Log Message:

Dont throw out non-leaf recycler instructions
For then you can not easily re-use dependent instructions.


diffs (21 lines):

diff --git a/monetdb5/mal/mal_recycle.c b/monetdb5/mal/mal_recycle.c
--- a/monetdb5/mal/mal_recycle.c
+++ b/monetdb5/mal/mal_recycle.c
@@ -260,7 +260,7 @@ int chooseVictims(Client cntxt, int *lea
                mnstr_printf(cntxt->fdout,"#TO be evicted based on space %d\n" 
,i);
 #endif
 
-       /* throw out all cheap instructions as well */
+       /* throw out all cheap leaf instructions as well */
        for(l = i ; l< ltop; l++){
                if ( recycleBlk->profiler[leaves[l]].ticks < 
recycleSearchTime/recycleSearchCalls){
                        leaves[i++] = leaves[l];
@@ -420,8 +420,6 @@ RECYCLEkeep(Client cntxt, MalBlkPtr mb, 
        lng clk= mb->profiler[pc].clk;
        lng ticks= GDKusec() - clk;
 
-       if ( recycleSearchCalls  && ticks < 
recycleSearchTime/recycleSearchCalls)
-               return;
        if ( recycleBlk->stop >= recycleCacheLimit)
                return ; /* no more caching */
        if ( recyclerMemoryUsed + mb->profiler[pc].wbytes > (lng) 
(MEMORY_THRESHOLD * monet_memory))
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to