diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-05-13 20:32:33 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2025-06-05 16:27:27 +0200 |
| commit | fde8a8d518e3bd9124bfe4028e3c45f7dcf34593 (patch) | |
| tree | ddf690f43ec8dce6e563fe6769a28edc7d8913ec /compiler/rustc_codegen_llvm/src | |
| parent | c360e219f5a56631baa46065d28e9852ca7d4ce3 (diff) | |
| download | rust-fde8a8d518e3bd9124bfe4028e3c45f7dcf34593.tar.gz rust-fde8a8d518e3bd9124bfe4028e3c45f7dcf34593.zip | |
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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
