Skip to content

Improve memory reload cost #115

Description

@Kostis-S-Z

During the conversion of pandas to hf.Dataset the Dataset.from_pandas builds an in-memory Arrow table, and the conversion is redone on every call. We could cache the converted dataset with save_to_disk() next to the extracted archive (keyed by the archive checksum, which the code already has for schema caching), then load_from_disk() on subsequent calls. So its memory-mapped, so RAM usage drops and reloads become near-instant.

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