This is now quite different from the original code. But it should retain the same functionality. I did not retest the performance, but it is still quite fast to answer.
This is a fast and lightweight HTTP/S server that redirects and rewrites encrypted HLS streams to avoid CORS and Geoblocking.
source | fast-hls-proxy | hls-proxy |
---|---|---|
cloudfront | 200-300ms | 1.7s-2.0s |
- Uses fast asynchronous IO with green threads (i.e.
gevent
) - Uses fast byte string processing without regex and splits
- Uses lightweight / fast HTTP server with
Falcon
andGunicorn
- Compatible with Pypy3
- Uses persistent connections with urllib
PoolManager
- Uses chunked response stream
- Proxies raw GZIP upstream data without decoding