public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Sylvain.Pion@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Cc: Sylvain.Pion@sophia.inria.fr Subject: optimization/6588: throw() takes 20,000 cycles : is it expected ? Date: Mon, 06 May 2002 16:36:00 -0000 [thread overview] Message-ID: <20020506233550.31444.qmail@sources.redhat.com> (raw) >Number: 6588 >Category: optimization >Synopsis: throw() takes 20,000 cycles : is it expected ? >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: pessimizes-code >Submitter-Id: net >Arrival-Date: Mon May 06 16:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sylvain Pion >Release: 3.1 and 3.2 >Organization: >Environment: Reading specs from /u/zosma/0/prisme/spion/gcc/Linux_trunc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs Configured with: /u/zosma/0/prisme/spion/gcc/gcc_trunc/configure --disable-shared --disable-nls --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_trunc --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld Thread model: single gcc version 3.2 20020505 (experimental) >Description: The sequence throw/catch appears to take about 20,000 cycles on a Pentium III. Is this expected ? Is there a way to speed this up ? Even if this sequence is not supposed to happen often, the fact that it's very slow can have a visible impact on global performance. >How-To-Repeat: // Compile with optimization the following code, // It takes more than 20 seconds to execute on my // Pentium III at 933 MHz. int main() { for (int i=0; i<1000000; ++i) { try { throw(0); } catch (...) { } } } >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-05-06 23:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-05-06 16:36 Sylvain.Pion [this message] 2002-05-08 15:06 Richard Henderson 2002-05-08 15:06 Sylvain Pion 2002-05-08 15:16 Richard Henderson
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=20020506233550.31444.qmail@sources.redhat.com \ --to=sylvain.pion@sophia.inria.fr \ --cc=gcc-gnats@gcc.gnu.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: linkBe 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).