]> sourceware.org Git - libabigail.git/commit
Speedup access to unreferenced symbols when loading corpus_group
authorDodji Seketeli <dodji@redhat.com>
Fri, 14 Apr 2017 08:51:22 +0000 (04:51 -0400)
committerDodji Seketeli <dodji@redhat.com>
Mon, 3 Jul 2017 15:45:41 +0000 (17:45 +0200)
commit5759a92eb4a3a68badf91868ebb307dd075c16f4
tree2537201ccec5869070ab05dee363a2af8fc66e0a
parente09fc8c9e27a931c1d6b8c253f3aa0333a972751
Speedup access to unreferenced symbols when loading corpus_group

This patch speeds up the invocation of
corpus_group::get_unreferenced_function_symbols and
corpus_group::get_unreferenced_variable_symbols.  It does so by
caching the result of constructing the map of of unreferenced symbol
at the time where each corpus is added to the group.

* src/abg-corpus.cc (corpus_group::unrefed_{fun, var}_symbol_map):
New data members.
(corpus_group::priv::priv): Adjust.
(corpus_group::priv::add_unref_{fun,var}_symbols): Define new
member functions.
(corpus_group::add_corpus): Update the map of unreferenced
symbols.
(corpus_group::get_unreferenced_{function,variable}_symbols)
Adjust logic.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-corpus.cc
This page took 0.036065 seconds and 5 git commands to generate.