From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43179 invoked by alias); 28 Oct 2019 14:01:09 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 42941 invoked by uid 48); 28 Oct 2019 14:00:52 -0000 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/25141] New: Doing dwz single-file optimization before dwz multifile optimization reduces effectiveness Date: Tue, 01 Jan 2019 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org 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: 2019-q4/txt/msg00026.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25141 Bug ID: 25141 Summary: Doing dwz single-file optimization before dwz multifile optimization reduces effectiveness Product: dwz Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: default Assignee: nobody at sourceware dot org Reporter: vries at gcc dot gnu.org CC: dwz at sourceware dot org Target Milestone: --- When doing the self-multi-file optimization on a hello world executable, we manage a total reduction of 78%: ... $ cp hello 1; cp 1 2; ./dwz -m 3 1 2 $ ../measure/diff.sh hello 1 .debug_info red: 66.19% 1467 496 .debug_abbrev red: 50.65% 624 308 .debug_str red: 100.00% 1595 0 total red: 78.19% 3686 804 ... However, if we first do the single-file mode optimization step using a sepa= rate invocation, we achieve a total reduction of only 54%: ... $ cp hello 4; ./dwz 4; cp 4 5; ./dwz -m 6 4 5 ./dwz: 4: DWARF compression not beneficial - old size 3400 new size 3400 ./dwz: 5: DWARF compression not beneficial - old size 3400 new size 3400 $ ../measure/diff.sh hello 4 .debug_info red: 24.20% 1467 1112 .debug_abbrev red: 8.82% 624 569 .debug_str red: 100.00% 1595 0 total red: 54.40% 3686 1681 ... --=20 You are receiving this mail because: You are on the CC list for the bug.