idf_size.py: Major performance improvements
idf_size.py: Major performance improvements

Merges https://github.com/espressif/esp-idf/pull/4518

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf