• Max Kellermann's avatar
    input_curl: buffered rewinding · 460b15d2
    Max Kellermann authored
    During codec detection, the beginning of the stream is consumed.  This
    is a common operation, which takes a lot of time when handling remote
    resources.  To optimize this, remember the first 64 kB of a stream.
    This way, we can rewind the stream without actually fetching the start
    of the stream again.
    460b15d2
input_curl.c 13.2 KB