aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
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:20:17 +0100
commitf3f28ec7e6cad5003014462feeb9178496107e08 (patch)
treefb0a182155fa2424e0f635c1fbc8a9133b42dc96 /ChangeLog
parentcdda992d4eedcf8e23b9a7222c16d49dee1586bd (diff)
downloadbitbake-f3f28ec7e6cad5003014462feeb9178496107e08.tar.gz
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. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions