Interesting.
My guess: speed up is due to buffering involved in the latter's case, not sure though.
My guess: speed up is due to buffering involved in the latter's case, not sure though.
In general writing to disk is handled asynchronously by the kernel (`write` just copies to a buffer and returns), but metadata operations like creating files are not, so this should help the most for many small files.