public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17596] New: expression parser is too slow, should be rewritten
@ 2004-09-22  0:43 giovannibajo at libero dot it
  2004-09-22  0:43 ` [Bug c++/17596] [3.4/4.0 Regression] " giovannibajo at libero dot it
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-22  0:43 UTC (permalink / raw)
  To: gcc-bugs

The expression parser is currently too slow due to its recursive nature. It 
could be speed up by rewriting it so that it manually tracks precedences.

Bug 14179 is an example of a machine-generated testcase which exposes our 
limits. I proposed a hack to help the testcase in that bug:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01839.html

but the patch was rejected. Mark said:
"""
I would like to hold off on this patch. Like Nathan says, this is the first 
good evidence I've seen that implementing operator-precedence parsing might be 
a measureable win on real code. If you, or Nathan, or I, or Zack, or somebody 
gets to implementing that, then that's probably the best way to go. If not, 
then we should consider your patch, as it really does make a big difference. 
Would you mind reminding me about this patch when we get ready to make the 
release branch, assuming we've not yet implemented the operator-precedence 
thing?
"""
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01960.html


This bug was opened to track this.

-- 
           Summary: expression parser is too slow, should be rewritten
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 14179
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17596


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

end of thread, other threads:[~2004-09-24 16:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22  0:43 [Bug c++/17596] New: expression parser is too slow, should be rewritten giovannibajo at libero dot it
2004-09-22  0:43 ` [Bug c++/17596] [3.4/4.0 Regression] " giovannibajo at libero dot it
2004-09-22  0:46 ` pinskia at gcc dot gnu dot org
2004-09-22 23:53 ` giovannibajo at libero dot it
2004-09-23  7:49 ` bonzini at gnu dot org
2004-09-23  8:04 ` bonzini at gnu dot org
2004-09-23  8:09 ` bonzini at gnu dot org
2004-09-23 11:29 ` giovannibajo at libero dot it
2004-09-23 11:58 ` cvs-commit at gcc dot gnu dot org
2004-09-23 12:20 ` giovannibajo at libero dot it
2004-09-23 12:24 ` paolo dot bonzini at polimi dot it
2004-09-24 16:02 ` bonzini at gcc dot gnu dot org

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).