This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | LanguagesFoldManager.evaluate() implementation is slow | ||
---|---|---|---|
Product: | obsolete | Reporter: | Marek Fukala <mfukala> |
Component: | languages | Assignee: | Daniel Prusa <dprusa> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | CC: | issues, mmetelka, pjiricka |
Priority: | P3 | Keywords: | PERFORMANCE, PLAN |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Marek Fukala
2007-08-30 12:17:28 UTC
We will look at it. Hi, is this still relevant? I have made some measuring regarding this issue, it seems that the number of NbDocument.findLineNumber() calls is smaller comparing to the number observed by Marek when he used a build dated to Aug 30. I am not sure why, but it can be caused by optimizations done in AST's as well as by a smarter feature querying. The number of calls was proportional to the number of folds. I have tested it using a 190kB js file (having 5264 lines). When parsing the file, 1180 calls of findLineNumber() were performed. Cumulative time of the calls was cca 32 milliseconds, while the whole parsing time was about 3 seconds. Performance on an another big js file was similar. I plan to make some more measuring using sources different to javascript. Additional measuring results: html file, 422kB, 8159 lines number of NbDocument.findLineNumber() calls: 7054 cumulative time of the calls: cca 500 ms total parsing time: cca 8200 ms Comparing to javascript, findLineNumber() is called more often for html, but the ratio between the cumulative time spent in the method and the total parsing time is still acceptable => closing this issue. |