public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/19427] New: Intern the strings used in Libabigail
@ 2016-01-01  0:00 dodji at redhat dot com
  2016-01-01  0:00 ` [Bug default/19427] " michi.henning at canonical dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: dodji at redhat dot com @ 2016-01-01  0:00 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=19427

            Bug ID: 19427
           Summary: Intern the strings used in Libabigail
           Product: libabigail
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: dodji at redhat dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

From the performance work related to bug #19355, it appears that we could
significantly improve the performance of emitting the XML ABI representation of
a binary by interning the strings
(https://en.wikipedia.org/wiki/String_interning) used to represent the names
and qualified names of types throughout the internal representation of the
Library.

So the idea is to introduce a new abigail::intern_string type, make it
inter-operable with the std::string used elsewhere in the library, provide a
string intern pool that is accessible from the current instance of
abigail::environment, and use that pool to create the interned strings for a
given run of the library that uses a given environment.

Further profiling would tell us if other spots in the library would benefit
from using string interning.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-24 23:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01  0:00 [Bug default/19427] New: Intern the strings used in Libabigail dodji at redhat dot com
2016-01-01  0:00 ` [Bug default/19427] " michi.henning at canonical dot com
2016-01-01  0:00   ` Dodji Seketeli
2016-01-01  0:00 ` dodji at redhat dot com
2016-01-01  0:00 ` dodji at redhat dot com
2016-01-01  0:00 ` dodji at seketeli dot org
2016-01-01  0:00 ` dodji at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).