Skip to content

Avoid reading metadata for LocalFileSystem::read_ranges (and other methods) #614

Closed

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

See #595 (comment)

Describe the solution you'd like

  • open the file
  • try getting bytes from it, if succeeds: it was fine (and we avoided reading the metadata), if it fails, we can read the metadata and "reproduce" the original error

Describe alternatives you've considered

Additional context

Activity

  1. changed the title [-]Avoid reading metadata for `LocalFileSystem::read_ranges`[/-] [+]Avoid reading metadata for `LocalFileSystem::read_ranges` (and other methods)[/+] on Jan 23, 2026
  2. alamb commented on Jan 23, 2026

    @alamb
    Contributor

    I would be very happy to review a PR for this issue -- please ping me

  3. Dandandan commented on Jan 24, 2026

    @Dandandan
    ContributorAuthor

    FYI @alamb my try for read_ranges

  4. Dandandan commented on Jan 25, 2026

    @Dandandan
    ContributorAuthor

    I did not see a huge difference in performance.

    I did see however a difference when avoiding File::open which is much more costly (5-10% difference on my machine for the clickbench benchmark in arrow-rs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions