Use the file size instead of the hash of the compiler executeable on mac #17429
autoantwort
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Just to confirm: you're saying it takes 2 seconds to hash $CC? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Alternatively one could use a faster cryptographic hash algorithm (like BLAKE3) for computing cache keys. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently is hashes over 350MB of file content every time you do a
vcpkg install
. In the noop case it needs 2,5 seconds on my mac. If I simply remove the hashes (yes this is no solution, only to measure time), the noop case only needs 0,5 seconds. Maybe simply use the file size in bytes of the compiler to determined if the compiler executable has changed (I would be very surprised if they manage to bring out a new version that is exactly 176'961'712 bytes in size)Beta Was this translation helpful? Give feedback.
All reactions