Skip to content

Improve ZSTD_compressStream2 from bucket read to stream #6

Description

@nono303

Actually, compression is done by ZSTD_compressStream2
looping on apr_bucket_read

This requires processing the compression block by block (8KiB from what I have seen) and not as a stream.

Once the block processed, it must be flush with ZSTD_e_flush while on "real streamed mode" we could use ZSTD_e_continue :

to let "encoder decides when to output compressed result, for optimal compression ratio"

I’m not an expert on APR so my question is, could we get the bucket brigades data as a single stream?

I had a look on existing filter module src and bucket brigades documentation but didn’t find something relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions