aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-05-25 19:29:03 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-05-25 19:29:03 -0400
commitcda102be020ef9c5c1425553ff611720f496f17e (patch)
treee43393b8686f5eb25fce441a4c41b4cb1190a0f7 /src/ir.cpp
parent6d5ec184ab1a1b8c155714801f7d6cb7ea6f5b8f (diff)
downloadzig-cda102be020ef9c5c1425553ff611720f496f17e.tar.gz
zig-cda102be020ef9c5c1425553ff611720f496f17e.zip
improvements to self-hosted cache hash system
* change miscellaneous things to more idiomatic zig style * change the digest length to 24 bytes instead of 48. This is still 70 more bits than UUIDs. For an analysis of probability of collisions, see: https://en.wikipedia.org/wiki/Universally_unique_identifier#Collisions * fix the API having the possibility of mismatched allocators * fix some error paths to behave properly * modify the guarantees about when file contents are loaded for input files * pwrite instead of seek + write * implement isProblematicTimestamp * fix tests with regards to a working isProblematicTimestamp function. this requires sleeping until the current timestamp becomes unproblematic. * introduce std.fs.File.INode, a cross platform type abstraction so that cache hash implementation does not need to reach into std.os.
Diffstat (limited to 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions