Skip to content

uzlib: support streaming #1910

@prusnak

Description

@prusnak

It would be nice if uzlib module supported streamed decompression.

Usecase: Suppose I have a gzipped image file (PPM.GZ) stored on Flash/SD card. This file can be a few kilobytes big and I want to decompress its contents and dump into the LCD driver. Currently I cannot do this, because I have to decompress the whole file into main memory (using zlib.decompress), which is bad, because this data are often bigger than the whole RAM.

Or am I missing something?

I guess ideally there could be a function that gets file object (I think read(size) method could be enough) as a parameter and returns another file object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy