about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2024-05-13 20:32:33 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2025-06-05 16:27:27 +0200
commitfde8a8d518e3bd9124bfe4028e3c45f7dcf34593 (patch)
treeddf690f43ec8dce6e563fe6769a28edc7d8913ec /compiler/rustc_codegen_llvm/src
parentc360e219f5a56631baa46065d28e9852ca7d4ce3 (diff)
downloadrust-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