Re: + bloat-o-meter-provide-3-different-arguments-for-data-function-and-all.patch added to -mm tree

From: Alexey Dobriyan
Date: Tue Sep 26 2017 - 14:26:13 EST


On Mon, Sep 25, 2017 at 05:04:01PM -0700, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> +def getsizes(file, format) :
> + func_sym = {}
> + for l in os.popen("nm --size-sort " + file).readlines():

This simply undoes "for line in f" optimization I did.

> +if(sys.argv[1] == "-c"):
> +elif(sys.argv[1] == "-d"):
> +elif(sys.argv[1] == "-t"):

Python doesn't require () here.

In general output is pretty noisy already and all those "#######"
do not help.

A