Bugs item #552691, was opened at 2002-05-05 19:36
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=438935&aid=552691&group_id=44253
Category: Performance
Group: Annoying
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Centgraf (centgraf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Slow Line Number Update
Initial Comment:
The current implementation of AbstractReducedModel.absOffset() reparses the entire source file, backwards. This is the comment for the method implementation:
/**
* Package private absolute offset for tests.
* We don't keep track of absolute offset as it causes too much confusion
* and trouble.
*/
Clearly this was never intended to be used for normal editing operations. Note that this method is getting called by the column and line numbering code after every source change, which means that every keystroke or click in the definitions pane is causing the entire file to be retokenized. This will need a reimplementation or a separate absolute position-tracking mechanism in order to have reasonable performance for large files.
I tried looking through the reduced model code to see if this could be added. I got lost very quickly and gave up.
--
Peter
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=438935&aid=552691&group_id=44253
|