Is there any noticeable difference in speed between these 2 scenarios?
Scenario 1: I have a file of size 1024 bytes filled with 0s for every byte. I open the file and write 1024 bytes of 1s with fwrite.
Scenario 2: I have a file of size 512 bytes filled with 0s for every byte. I open the file and write 1024 bytes of 1s with fwrite.
Obviously I end up with identical files, but is there any penalty in resizing the 2nd file on disk?
I'm trying to determine if resizing my files before using them will be of any worth. Bonus points to anyone who can show me some Linux documentation to prove this either way.