f2b4d57068
We were growing the file block-by-block which was pretty inefficient. We now coalesce all the grows into a single Ftruncate. Also simplifies the code! Simplistic benchmark: Before: $ time truncate -s 1000M foo real 0m0.568s After: $ time truncate -s 1000M foo real 0m0.205s |
||
---|---|---|
.. | ||
args.go | ||
compat_darwin.go | ||
compat_linux.go | ||
file_holes.go | ||
file.go | ||
fs_dir.go | ||
fs.go | ||
names.go | ||
write_lock.go |