lib/fs: clarify description for -fs.disableMmap command-line flag

This commit is contained in:
Aliaksandr Valialkin 2020-07-06 14:28:28 +03:00
parent 6daa5f7500
commit a23806f486

View File

@ -14,7 +14,8 @@ import (
)
var disableMmap = flag.Bool("fs.disableMmap", is32BitPtr, "Whether to use pread() instead of mmap() for reading data files. "+
"By default mmap() is used for 64-bit arches and pread() is used for 32-bit arches, since they cannot data files bigger than 2^32 bytes in memory")
"By default mmap() is used for 64-bit arches and pread() is used for 32-bit arches, since they cannot read data files bigger than 2^32 bytes in memory. "+
"mmap() is usually faster for reading small data chunks than pread()")
const is32BitPtr = (^uintptr(0) >> 32) == 0