summaryrefslogtreecommitdiff
path: root/src/lib/stack.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-07 00:11:38 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-07 00:17:04 +0200
commit6c685e0cd6143dd7a8b1a9b5631b1bc9c0c4d687 (patch)
tree9dc4bdf16691d20ff659d7b58cccddab2bd8c0d1 /src/lib/stack.cpp
parent334d3cb564c72bd430a17c6e6f01aeb488fb191c (diff)
Use a much bigger block size when calling fwrite(). Each call to fwrite()
writes a few (often around 4) blocks of (I think) directory data to the drive, so if you only fwrite() one block it ends up writing 1 block of "payload" and 4 blocks of "admin". Using bigger blocks makes it faster; an even bigger block than this makes it a little faster still, but not significantly. The extra block writing is seemingly triggered by fwrite() calling ext4_block_cache_write_back(..., 0). A better fix is probably to call this another way, at the end of the file copy.
Diffstat (limited to 'src/lib/stack.cpp')
0 files changed, 0 insertions, 0 deletions