2015-01-20 0:58 GMT+03:00 Brad Fitzpatrick <
brad...@golang.org>:
> No. That's probably too specific for the standard library.
>
> I did a bunch of that sort of stuff for
dl.google.com. See
>
http://talks.golang.org/2013/oscon-dl.slide#51 and that whole slide deck.
>
> ReaderAt access patterns are often dumb enough that you'll want to do some
> minimal amount of caching on your side, like maybe 256KB aligned chunks
> minimum, and always hold on to the last few, just in case the caller reads
> it again right afterwards. (like the archive/zip reader reading the final
> few bytes, and then backing up to read the TOC, which is likely in the same
> 256KB, so you might as well do it all in one HTTP request if they're going
> to be relatively high-latency)