For complex embedding such as JSPs it would be beneficial to first analyze what formatting needs to be done (possibly
using lexer's token hierarchy). Once the analysis are done there are many small modifications done (typically
adding/removing a whitespace on formatted lines) and each modification updates the token hierarchy. It would improve
performance if the hierarchy would be deactivated for the formatting and activated at the end.
I need to measure a rough performance gain from such change and also consider indentation api/spi impact.
Token Hierarchy switches off after BaseTextUI.LENGTHY_ATOMIC_EDIT_THRESHOLD number of inserts/removals.
*** Bug 198135 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden'
User: Miloslav Metelka <firstname.lastname@example.org>
Log: #150197 - Switch off Lexer's Token Hierarchy during formatting.
Reopened since the fix had to be reverted due to issue 200270. I will implement some additional logic in order to fix this.
*** Bug 229099 has been marked as a duplicate of this bug. ***
*** Bug 232065 has been marked as a duplicate of this bug. ***
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.
Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss