From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8115 invoked by alias); 5 Jan 2016 10:25:59 -0000 Mailing-List: contact libabigail-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: libabigail-owner@sourceware.org Received: (qmail 8070 invoked by uid 48); 5 Jan 2016 10:25:55 -0000 From: "dodji at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/19427] New: Intern the strings used in Libabigail Date: Fri, 01 Jan 2016 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dodji at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q1/txt/msg00003.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D19427 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 representatio= n 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. --=20 You are receiving this mail because: You are on the CC list for the bug.