prevent rose from initiating lots of small merges when the writer process is slow

This commit is contained in:
Sears Russell 2008-10-27 23:26:16 +00:00
parent 15e0391187
commit a2a8c73cb5

View file

@ -684,13 +684,13 @@ namespace rose {
} }
count --; count --;
#endif #endif
if( if( (handleBytes > memSizeThresh / 2) && (
#ifdef INFINITE_RESOURCES #ifdef INFINITE_RESOURCES
go || go ||
#else #else
handleBytes > inputSizeThresh || handleBytes > inputSizeThresh ||
#endif #endif
handleBytes > memSizeThresh) { // XXX ok? handleBytes > memSizeThresh ) ) { // XXX ok?
printf("Handle mbytes %lld (%lld) Input size: %lld input size thresh: %lld mbytes mem size thresh: %lld\n", printf("Handle mbytes %lld (%lld) Input size: %lld input size thresh: %lld mbytes mem size thresh: %lld\n",
(long long) handleBytes / (1024*1024), (long long) h->scratch_handle->size(), (long long) *h->input_size, (long long) handleBytes / (1024*1024), (long long) h->scratch_handle->size(), (long long) *h->input_size,
(long long) inputSizeThresh / (1024*1024), (long long) memSizeThresh / (1024*1024)); (long long) inputSizeThresh / (1024*1024), (long long) memSizeThresh / (1024*1024));