search for: orig_r_nsize

Displaying 4 results from an estimated 4 matches for "orig_r_nsize".

2015 Jan 18
2
default min-v/nsize parameters
...c = 0.2; 345 static int R_NGrowIncrMin = 40000, R_NShrinkIncrMin = 0; 346 static double R_VGrowIncrFrac = 0.05, R_VShrinkIncrFrac = 0.2; 347 static int R_VGrowIncrMin = 80000, R_VShrinkIncrMin = 0; 348#endif static void AdjustHeapSize(R_size_t size_needed) { R_size_t R_MinNFree = (R_size_t)(orig_R_NSize * R_MinFreeFrac); R_size_t R_MinVFree = (R_size_t)(orig_R_VSize * R_MinFreeFrac); R_size_t NNeeded = R_NodesInUse + R_MinNFree; R_size_t VNeeded = R_SmallVallocSize + R_LargeVallocSize + size_needed + R_MinVFree; double node_occup = ((double) NNeeded) / R_NSize; double vect_occu...
2015 Jan 20
1
default min-v/nsize parameters
...static double R_VGrowIncrFrac = 0.05, R_VShrinkIncrFrac = 0.2; >> 347 static int R_VGrowIncrMin = 80000, R_VShrinkIncrMin = 0; >> 348#endif >> >> static void AdjustHeapSize(R_size_t size_needed) >> { >> R_size_t R_MinNFree = (R_size_t)(orig_R_NSize * R_MinFreeFrac); >> R_size_t R_MinVFree = (R_size_t)(orig_R_VSize * R_MinFreeFrac); >> R_size_t NNeeded = R_NodesInUse + R_MinNFree; >> R_size_t VNeeded = R_SmallVallocSize + R_LargeVallocSize + >> size_needed + R_MinVFree; >> double node_occup = (...
2015 Jan 19
0
default min-v/nsize parameters
...crMin = 40000, R_NShrinkIncrMin = 0; > 346 static double R_VGrowIncrFrac = 0.05, R_VShrinkIncrFrac = 0.2; > 347 static int R_VGrowIncrMin = 80000, R_VShrinkIncrMin = 0; > 348#endif > > static void AdjustHeapSize(R_size_t size_needed) > { > R_size_t R_MinNFree = (R_size_t)(orig_R_NSize * R_MinFreeFrac); > R_size_t R_MinVFree = (R_size_t)(orig_R_VSize * R_MinFreeFrac); > R_size_t NNeeded = R_NodesInUse + R_MinNFree; > R_size_t VNeeded = R_SmallVallocSize + R_LargeVallocSize + > size_needed + R_MinVFree; > double node_occup = ((double) NNeeded) / R_NS...
2015 Jan 15
2
default min-v/nsize parameters
Just wanted to start a discussion on whether R could ship with more appropriate GC parameters. Right now, loading the recommended package Matrix leads to: > library(Matrix) > gc() used (Mb) gc trigger (Mb) max used (Mb) Ncells 1076796 57.6 1368491 73.1 1198505 64.1 Vcells 1671329 12.8 2685683 20.5 1932418 14.8 Results may vary, but here R needed 64MB of N cells and 15MB