diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2016-12-12 16:40:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-12 18:55:06 -0800 |
commit | 3af06fd96aae18561830745880ca6e289053edae (patch) | |
tree | 75e88233acc979470ecda89f88fe9cdc01ede83c /fs/exofs | |
parent | 3fb4afd9a504c2386b8435028d43283216bf588e (diff) |
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/exofs')
0 files changed, 0 insertions, 0 deletions