public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/25291] create_import_tree phase 2 slowness
Date: Wed, 03 Mar 2021 09:12:28 +0000	[thread overview]
Message-ID: <bug-25291-11298-V89CWEwBSl@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-25291-11298@http.sourceware.org/bugzilla/>

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
The most pragmatic way to handle this is --devel-gen-cu --devel-uni-lang. Less
imports generated, less scope for create_import_tree.

Consider f.i. this log file for file debug/Checker.so.debug:
...
+ ../measure/time.sh ./dwz debug/Checker.so.debug -o debug/Checker.so.debug.0.z
-lnone -Lnone --no-odr
maxmem: 5913264
real: 70.78
user: 65.74
system: 5.01
+ ../measure/time.sh ./dwz debug/Checker.so.debug -o debug/Checker.so.debug.1.z
-lnone -Lnone --odr --odr-mode=link
maxmem: 6091880
real: 104.91
user: 100.47
system: 4.39
+ ../measure/time.sh ./dwz debug/Checker.so.debug -o debug/Checker.so.debug.2.z
-lnone -Lnone --odr --odr-mode=link --devel-uni-lang --devel-gen-cu
maxmem: 6069780
real: 83.50
user: 79.32
system: 4.17
+ ../measure/diff.sh debug/Checker.so.debug debug/Checker.so.debug.0.z
.debug_info      red: .01%      542547271  542518778
.debug_abbrev    red: .11%      5277543  5271927
.debug_str       red: 0%        63361040  63361040
total            red: .01%      611185854 611151745
+ ../measure/diff.sh debug/Checker.so.debug debug/Checker.so.debug.1.z
.debug_info      red: 32.82%    542547271  364493736
.debug_abbrev    red: -9.44%    5277543  5775931
.debug_str       red: 0%        63361040  63361040
total            red: 29.06%    611185854 433630707
+ ../measure/diff.sh debug/Checker.so.debug debug/Checker.so.debug.2.z
.debug_info      red: 33.00%    542547271  363553611
.debug_abbrev    red: -9.12%    5277543  5759093
.debug_str       red: 0%        63361040  63361040
total            red: 29.21%    611185854 432673744
...

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

      parent reply	other threads:[~2021-03-03  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01  0:00 [Bug default/25291] New: " vries at gcc dot gnu.org
2019-01-01  0:00 ` [Bug default/25291] " vries at gcc dot gnu.org
2021-03-03  9:12 ` vries at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-25291-11298-V89CWEwBSl@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=dwz@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).