Pārlūkot izejas kodu

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

Gwyneth Llewelyn 7 gadi atpakaļ
vecāks
revīzija
e1d1677430
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      gosl.go

+ 2 - 2
gosl.go

@@ -187,8 +187,8 @@ func main() {
 	
 		if *goslConfig.noMemory  {
 	//		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.MaxTableSize = 1048576 // * 12
 			Opt.LevelSizeMultiplier = 1