diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2016-12-13 01:40:45 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-13 03:55:06 +0100 |
commit | 3af06fd96aae18561830745880ca6e289053edae (patch) | |
tree | 75e88233acc979470ecda89f88fe9cdc01ede83c /fs | |
parent | prctl: remove one-shot limitation for changing exe link (diff) | |
download | linux-3af06fd96aae18561830745880ca6e289053edae.tar.xz linux-3af06fd96aae18561830745880ca6e289053edae.zip |
scripts/bloat-o-meter: don't use readlines()
readlines() conses whole list before doing anything which is slower for
big object files. Use per line iterator.
Speed up is ~2% on "allyesconfig" type of kernel.
$ perf stat -r 16 taskset -c 15 ./scripts/bloat-o-meter ../vmlinux-000 ../obj/vmlinux >/dev/null
...
Before: 7.247708646 seconds time elapsed ( +- 0.28% )
After: 7.091202853 seconds time elapsed ( +- 0.15% )
Link: http://lkml.kernel.org/r/20161119004143.GA1200@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions