]> git.ipfire.org Git - thirdparty/ccache.git/commit
perf: Optimize file reading on Windows (#1418)
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 23 Mar 2024 11:54:45 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Mar 2024 11:54:45 +0000 (12:54 +0100)
commit5d94ee28ae08742cb1235cc9b43c297da516ad4d
treea5129d415a4ff0761e9c9ccd77334cb350d1380a
parent3791d3b96a17583194d0ca265a6fa8dfc63fdd10
parent0552beaf4627ac7297f19fbcd788554bb13b05ce
perf: Optimize file reading on Windows (#1418)

Reading the file in do_hash_file as Bytes skips CRLF to LF conversion
and is therefore way faster.

Optimize read_file size_hint on Windows by getting the file size of the
existing handle instead of opening a duplicate one.