Skip to content

Commit

Permalink
set sane spill minimum until we devise a new spill strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensel committed Feb 24, 2012
1 parent b5186f0 commit efda63f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ private SpillableTupleList.Threshold getThreshold()
{
return new SpillableTupleList.Threshold()
{
int minThreshold = (int) ( getMapThreshold() * .05 );

@Override
public int current()
{
return Math.min( getInitListThreshold(), getMapThreshold() / size() );
return Math.max( minThreshold, Math.min( getInitListThreshold(), getMapThreshold() / size() ) );
}
};
}
Expand Down

0 comments on commit efda63f

Please sign in to comment.