Changeset: 71091f234021 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=71091f234021
Modified Files:
monetdb5/modules/mosaic/mosaic.c
Branch: mosaic
Log Message:
Minor textuals
diffs (49 lines):
diff --git a/monetdb5/modules/mosaic/mosaic.c b/monetdb5/modules/mosaic/mosaic.c
--- a/monetdb5/modules/mosaic/mosaic.c
+++ b/monetdb5/modules/mosaic/mosaic.c
@@ -266,41 +266,35 @@ MOSoptimizerCost(Client cntxt, MOStask t
ratio = fac;
}
}
- // max achievable compression factor is 64x
if (ratio < typewidth && task->filter[MOSAIC_PREFIX]){
fac = MOSestimate_prefix(cntxt,task);
if ( fac > ratio ){
cand = MOSAIC_PREFIX;
ratio = fac;
}
- if ( fac <= 0.0)
- task->filter[MOSAIC_PREFIX] = 0;
}
- // max achievable compression factor is 8x
- if (task->filter[MOSAIC_DICT]){
+ if (ratio < 64 && task->filter[MOSAIC_DICT]){
fac = MOSestimate_dictionary(cntxt,task);
if (fac > ratio){
cand = MOSAIC_DICT;
ratio = fac;
}
}
- // max achievable compression factor is 8x
- if (task->filter[MOSAIC_FRAME]){
+ if (ratio < 64 && task->filter[MOSAIC_FRAME]){
fac = MOSestimate_frame(cntxt,task);
if (fac > ratio){
cand = MOSAIC_FRAME;
ratio = fac;
}
}
- // max achievable compression factor is 8x
- if (task->filter[MOSAIC_DELTA]){
+ if (ratio < 64 && task->filter[MOSAIC_DELTA]){
fac = MOSestimate_delta(cntxt,task);
if ( fac > ratio ){
cand = MOSAIC_DELTA;
ratio = fac;
}
}
- if (task->filter[MOSAIC_CALENDAR]){
+ if (ratio < 64 && task->filter[MOSAIC_CALENDAR]){
fac = MOSestimate_calendar(cntxt,task);
if (fac > ratio){
cand = MOSAIC_CALENDAR;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list