Skip to content

Use fstat instead of stat in libstd/fs.rs initial_buffer_size #47519

Closed
@alex

Description

@alex

Follow up to #47324. Instead of calling stat and then open, do open and then fstat.

In my tests on macOS this is significantly faster.

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