You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using PCLStorage to store files that are send across a network. It works by braking up a large file into many file parts. The file parts are then sent one by one across the network. The client receiving each file part and writes it to the file stream.
The problem is writing small chunks of the file means the OS has no idea how big the complete file will be and therefore makes a poor judgement on how much space to allocate for the file. Just to make sure we are on the same page this wasted space inside a file is called internal fragmentation.
above is a screenshot of a file I sent across a network. On the left is the original file. On the right is the reconstructed file that has been sent with many parts across the network. The original uses 460KB of allocated memory while the file on the left uses 688KB of allocated memory. Therefore 49% of extra memory is needed for the same file.
my question is can I use your library to indicate to the OS the expected file size?
The text was updated successfully, but these errors were encountered:
I am using PCLStorage to store files that are send across a network. It works by braking up a large file into many file parts. The file parts are then sent one by one across the network. The client receiving each file part and writes it to the file stream.
The problem is writing small chunks of the file means the OS has no idea how big the complete file will be and therefore makes a poor judgement on how much space to allocate for the file. Just to make sure we are on the same page this wasted space inside a file is called internal fragmentation.
https://puu.sh/tCrgT/28ac28e4ec.png
above is a screenshot of a file I sent across a network. On the left is the original file. On the right is the reconstructed file that has been sent with many parts across the network. The original uses 460KB of allocated memory while the file on the left uses 688KB of allocated memory. Therefore 49% of extra memory is needed for the same file.
my question is can I use your library to indicate to the OS the expected file size?
The text was updated successfully, but these errors were encountered: