Browse Source

Reverting ‘no memory’ flag to use memory-mapping again

Gwyneth Llewelyn 7 years ago
parent
commit
e1d1677430
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gosl.go

+ 2 - 2
gosl.go

@@ -187,8 +187,8 @@ func main() {
 	
 	
 		if *goslConfig.noMemory  {
 		if *goslConfig.noMemory  {
 	//		Opt.TableLoadingMode = options.FileIO // use standard file I/O operations for tables instead of LoadRAM
 	//		Opt.TableLoadingMode = options.FileIO // use standard file I/O operations for tables instead of LoadRAM
-	//		Opt.TableLoadingMode = options.MemoryMap // MemoryMap indicates that that the file must be memory-mapped - https://github.com/dgraph-io/badger/issues/224#issuecomment-329643771
-			Opt.TableLoadingMode = options.FileIO
+			Opt.TableLoadingMode = options.MemoryMap // MemoryMap indicates that that the file must be memory-mapped - https://github.com/dgraph-io/badger/issues/224#issuecomment-329643771
+	//		Opt.TableLoadingMode = options.FileIO
 	//		Opt.ValueLogFileSize = 1048576
 	//		Opt.ValueLogFileSize = 1048576
 			Opt.MaxTableSize = 1048576 // * 12
 			Opt.MaxTableSize = 1048576 // * 12
 			Opt.LevelSizeMultiplier = 1
 			Opt.LevelSizeMultiplier = 1