This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17596] New: expression parser is too slow, should be rewritten
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2004 00:43:03 -0000
- Subject: [Bug c++/17596] New: expression parser is too slow, should be rewritten
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
- Follow-Ups:
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: giovannibajo at libero dot it
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: pinskia at gcc dot gnu dot org
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: giovannibajo at libero dot it
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: bonzini at gnu dot org
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: bonzini at gnu dot org
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: bonzini at gnu dot org
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: giovannibajo at libero dot it
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: cvs-commit at gcc dot gnu dot org
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: giovannibajo at libero dot it
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: paolo dot bonzini at polimi dot it
- [Bug c++/17596] [3.4/4.0 Regression] expression parser is too slow, should be rewritten
- From: bonzini at gcc dot gnu dot org