Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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)


Back to the top