[xml-writter] Speedup function_type::get_cached_name
authorDodji Seketeli <dodji@redhat.com>
Mon, 8 Jul 2019 15:00:17 +0000 (17:00 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 8 Jul 2019 15:11:30 +0000 (17:11 +0200)
commit7699dfc921d248fa6d5cbdbeab9d501b17ef3f52
treef23719b35886660b2be95ae960b5f7a1e910db15
parent65318dacfb948c594032addf1872ff9debc0c413
[xml-writter] Speedup function_type::get_cached_name

It looks like due to a typo, we are never caching the name of the
function_type, so we are computing it all the time, *OOOPS*.  So this
is having an impact when comparing instance of function_type during
de-duplication at abixml writting time.

Things are faster now, thanks to this patch.

* src/abg-ir.cc (function_type::get_cached_name): Really cache the
computed name of function_type instances.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc