[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] CDT performance: parser backtrace exception - bug #117701 created.
|
I have created bug #117701 to track this problem.
It seems like some enchancement is possible:
just preliminary modification has give ~4% (2 seconds of 44 total) for
indexing speed.
See bug text for details
https://bugs.eclipse.org/bugs/show_bug.cgi?id=117701
Work is in progress.
-----------------------------------
With best regards, Oleg Krasilnikov
Software designer, Eclipse team.
Intel corp.
+7 8312 162 444 ext. 2587
(Russia, Nizhny Novgorod)
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Krasilnikov, Oleg
Sent: Tuesday, November 22, 2005 6:55 PM
To: CDT General developers list.
Subject: [cdt-dev] CDT performance: parser backtrace exception.
Hi all.
The following strange thing has been found in CNUCSourceParser :
1. castExpression() method raises "BacktrackException" in ~ every 2nd
call.
For example, indexing a source of "Midnight Commander" (125 files)
we'll
get ~3343 exceptions, while castException() has been called 6727
times.
2. In "castExpression()" code, we see a comment :
// If this isn't a type name, then we shouldn't be here
But, really, this method is called for such code as:
message (1, MSG_ERROR, _(" Cannot chown \"%s\" \n %s "), fname,
unix_error_string (errno));
and raises exception., of course.
3. The means to avoid exception (heavy time-consuming operation) are
under investigation.
-----------------------------------
With best regards, Oleg Krasilnikov
Software designer, Eclipse team.
Intel corp.
+7 8312 162 444 ext. 2587
(Russia, Nizhny Novgorod)
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev