![]() ![]() Files filled with zeroes can be stored as sparse files where the file system supports it, thus not taking up actual disk space.(There's some room for optimization in evicting the zeroed blocks first, but it's probably corner case enough not to matter). In the exotic case that a file is named like padding but isn't actually, verification will fail, and those blocks need to be actually downloaded. When fetching pieces that contain a padding file, treat all blocks that are part of a padding file as pre-populated with zeros.Add a heuristic of what is likely to be a padding file (naming appears to follow the ^\.?_padding.*$ regular expression).Not stressing the swarm with zero block transfers:.There's three aspects to it that could largely be addressed individually: Just ignoring them will not give all the benefits a padding file has (which is to allow deduplication over different torrents / torrent versions with some identical files without having to actually transfer the padding over the wire), and would require user intervention that I'd expect rarely to be accurate in practice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |