[FFmpeg-devel] [PATCH] HTTP: optimize forward seek performance

Nicolas George george at nsup.org
Thu Jan 12 14:53:42 EET 2017


Le duodi 22 nivôse, an CCXXV, Joel Cunningham a écrit :
> This commit optimizes HTTP forward seeks by advancing the stream on
> the current connection when the seek amount is within the current
> TCP window rather than closing the connection and opening a new one.
> This improves performance because with TCP flow control, a window's
> worth of data is always either in the local socket buffer already or
> in-flight from the sender.

Thanks for the patch. You may have not noticed, but there is already a
similar logic in the higher-level API, aviobuf. See the code for
avio_seek(). I suspect it would be a better place to implement the logic
of avoiding seeks on slow-ish protocols.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170112/f99fb3e1/attachment.sig>


More information about the ffmpeg-devel mailing list