bitset -> bit field

This commit is contained in:
Benjamin Peterson 2017-09-08 10:47:43 -07:00
parent 3111bc70c7
commit dfa8fd0bcc
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ invalidation will be done by comparing the metadata of the source file with that
in the header. in the header.
If the lowest bit of the bit field is set, the pyc is a hash-based pyc. We call If the lowest bit of the bit field is set, the pyc is a hash-based pyc. We call
the second lowest bit the ``check_source`` flag. Following the bitset is a the second lowest bit the ``check_source`` flag. Following the bit field is a
64-bit hash of the source file. We will use a SipHash_ with a hardcoded key of 64-bit hash of the source file. We will use a SipHash_ with a hardcoded key of
the contents of the source file. Another a fast hash like MD5 or BLAKE2_ would the contents of the source file. Another a fast hash like MD5 or BLAKE2_ would
also work. We choose SipHash because Python already has a builtin implementation also work. We choose SipHash because Python already has a builtin implementation