PreviousNextTracker indexSee it online !

(45/231) 1814403 - Bracket matching performance on large files

WINXP Pro, Jedit 4.3pre11 using Java 1.6.0_03

For large JavaScript files (~2000+ lines), there is a noticeable pause when typing a "(" character, or indeed moving over the "(" character

This is instant at the end of the file, but takes progressively longer, the closer to the start of the file you are (as I guess more code is parsed to find a match).

As a workaround at the moment, I type the closing bracket first, and this doesn't subjectively seem to have the same performance hit.

Sorry I can't load an example - company confidentiality etc.

Submitted mrsean2k - 2007-10-16 - 10:25:56z Assigned nobody
Priority 5 Category text area and syntax packages
Status Open Group normal bug
Resolution None Visibility No

Comments

2007-10-16 - 15:35:13z
ezust
Logged In: YES
user_id=935841
Originator: NO

Are you using the XML plugin? Is the ecmascript your preferred sidekick parser?
What version of XML plugin?

2007-11-02 - 16:53:28z
mrsean2k
Logged In: YES
user_id=1914291
Originator: YES

I'm using the XML plugin and it's version 2.0.6

Also Sidekick 0.7.4, and the default parse appears to be javascript
2007-11-06 - 21:19:44z
kpouer
Logged In: YES
user_id=285591
Originator: NO

If you deactivate xml plugin does it still happens ?
2007-11-08 - 14:18:42z
mrsean2k
Logged In: YES
user_id=1914291
Originator: YES

It seems marginally faster, but not much difference AFAICT.

Attachments