The best I can come up with is the Metalink Editor source code which
uses 256k sized chunks unless that would produce more than 255 chunks,
then it limits the number of chunks to 255.  I adopted this for Metalink
Checker as well.

As for the power of two I'm not sure, perhaps that just optimizes the
hash calculation.

Neil

On 8/21/2012 4:20 AM, Jack Bates wrote:
> Can anyone please point me at any best practices for choosing the length
> of the Metalink <pieces/> element? I looked at RFC 5854 and the
> discussion group archives, and while they make quite clear how to
> interpret the length attribute of the <pieces/> element, I found no
> discussion yet on how to choose good values. Is there any "conventional
> wisdom" in the Metalink community on choosing good values? Can anyone
> please offer me any advice?
> 
> It seems that you would want to choose a larger value for larger files,
> to keep the number of </hash> descendant elements from exploding. At the
> same time, too large a value would make it less efficient for clients to
> isolate errors
> 
> I found many resources that say that the length of pieces in torrent
> files is almost always a power of two, but I found no explanation of why
> that is. Is there a good reason why the length of BitTorrent pieces is
> usually a power of two? Is the length of Metalink <pieces/> also usually
> a power of two?
> 
> Thanks for any advice!
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Metalink Discussion" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/metalink-discussion/-/O-k4tlLtSYIJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/metalink-discussion?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Metalink Discussion" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/metalink-discussion?hl=en.

Reply via email to