diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-06 00:58:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 00:58:42 +0200 |
| commit | c141cbf26321b35adee7b867dcb99036a9e5d2e7 (patch) | |
| tree | 4283b944067d20a139efa90c515e13a6803ed5c9 /compiler/rustc_interface/src | |
| parent | ccf3198de316b488ee17441935182e9d5292b4d3 (diff) | |
| parent | 4b1e28b21f78491d4ae187a52ebd5436edef6281 (diff) | |
| download | rust-c141cbf26321b35adee7b867dcb99036a9e5d2e7.tar.gz rust-c141cbf26321b35adee7b867dcb99036a9e5d2e7.zip | |
Rollup merge of #125087 - tbu-:pr_file_stream_len, r=ChrisDenton
Optimize `Seek::stream_len` impl for `File` It uses the file metadata on Unix with a fallback for files incorrectly reported as zero-sized. It uses `GetFileSizeEx` on Windows. This reduces the number of syscalls needed for determining the file size of an open file from 3 to 1.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
