summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/checksum.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-08-13 19:02:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-29 15:23:58 +0100
commit1b966ffd5fcfdc8e0fd1ed622b71016e732ee7e6 (patch)
tree5d0803668dad7d6af7e2b4e63527f43c1d55a991 /bitbake/lib/bb/checksum.py
parentf7a8c088ae1db6c2ebaa5e0aa4c7c8ed352bb045 (diff)
downloadpoky-1b966ffd5fcfdc8e0fd1ed622b71016e732ee7e6.tar.gz
bitbake: utils/md5_file: don't iterate line-by-line
Opening a file in binary mode and iterating it seems like the simple solution but will still break on newlines, which for binary files isn't really useful as the size of the chunks could be huge or tiny. Instead, let's be a bit more clever: we'll be MD5ing lots of files, but we don't want to fill up memory: use mmap() to open the file and read the file in 8k blocks. (Bitbake rev: f3f28ec7e6cad5003014462feeb9178496107e08) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/checksum.py')
0 files changed, 0 insertions, 0 deletions