Use BrotliEncoderCompress and a bit of buffer size optimization and re-use instead of BrotliEncoderCompressStream
Use BrotliEncoderCompress and a bit of buffer size optimization and re-use instead of BrotliEncoderCompressStream

Give a small bit of added throughput in my benchmarks, but mostly is a preparation for creating the option to compress into externally pre-allocated memory (for a new alternative encoder)

google/fusion-power-video