Skip to content

Python: avoid importing pyarrow classes ever time #9438

@Tpt

Description

@Tpt

Currently the Python bindings import the pyarrow module each time a conversion is done. It is possible to cache retrieved types to avoid this. The pyO3 PyOnceLock::import method provides an easy way to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelogperformance

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions