Skip to content

Improve memory efficiency when reading packet files #185

@medley56

Description

@medley56

In generators/utils.py::_read_packet_file, if a user passes in a str path, Path, or PathLike (e.g. an S3Path), we read the entire binary file into memory before passing it to the generator object. This is not ideal for memory usage, though it does provide better performance than requiring the generator to repeatedly read from disk.

To support users who want to pass in gigantic files that don't fit in memory using PathLike objects, we can ...

@greglucas can you fill in the blank?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions