mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 07:24:34 +00:00
The Git repository of the Libabigail Project
9135d990f5
To record the emitted types, the abixml writer records the emitted type *ID*s. So to lookup an emitted type, it needs to lookup the ID of the type first, and then lookup that type-id in the set of emitted type IDs. We are doing twice as much work as we should and profiling the writting of a big abixml showed that it's quite taxing. This patch makes the write records the set of emitted types directly. No need to go through the emitted type *ID*s anymore. So we save one map lookup. This incurs a 16% speedup when writting an abixml file for a big (3GB) vmlinux file. * src/abg-writer.cc (type_ptr_set_type): Declare new typedef. (writer_context::m_emitted_type_id_map): Remove this data member. (writer_context::m_emitted_type_set): Add a new data member. (writer_context::{record_type_id_as_emitted, type_id_is_emitted, clear_emitted_types_map}): Remove these member functions. (writer_context::{record_type_as_emitted, type_is_emitted}): Use the new m_emitted_type_set data member above. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
autoconf-archive | ||
bash-completion | ||
doc | ||
include | ||
m4 | ||
scripts | ||
src | ||
tests | ||
tools | ||
.gitignore | ||
abigail.m4 | ||
AUTHORS | ||
ChangeLog | ||
COMMIT-LOG-GUIDELINES | ||
COMPILING | ||
configure.ac | ||
CONTRIBUTING | ||
COPYING | ||
COPYING-GPLV3 | ||
COPYING-LGPLV2 | ||
COPYING-LGPLV3 | ||
default.abignore | ||
gen-changelog.py | ||
install-sh | ||
libabigail.pc.in | ||
ltmain.sh | ||
Makefile.am | ||
NEWS | ||
README | ||
release-text-template.txt | ||
VISIBILITY |
This is the Application Binary Interface Generic Analysis and Instrumentation Library. It aims at constructing, manipulating, serializing and de-serializing ABI-relevant artifacts. The set of artifacts that we are intersted is made of quantities like types, variable, fonctions and declarations of a given library or program. For a given library or program this set of quantities is called an ABI corpus. This library aims at (among other things) providing a way to compare two ABI Corpora (apparently the plural of corpus is copora, heh, that's cool), provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences. You are welcome to contribute to this project after reading the files CONTRIBUTING and COMMIT-LOG-GUIDELINES files in the source tree. Communicating with the maintainers of this project -- including sending patches to be include to the source code -- happens via email at libabigail@sourceware.org.