PreviousNextTracker indexSee it online !

(21/211) 2971 - 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:56 Assigned
Priority 5 Labels text area and syntax packages
Status open Group normal bug
Resolution None

Comments

2007-10-16 15:35:13
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:28
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:44
kpouer

- **status**: open --> pending

2007-11-06 21:19:44
kpouer

Logged In: YES
user_id=285591
Originator: NO

If you deactivate xml plugin does it still happens ?

2007-11-08 14:18:42
mrsean2k

Logged In: YES
user_id=1914291
Originator: YES

It seems marginally faster, but not much difference AFAICT.

2007-11-08 14:18:42
mrsean2k

- **status**: pending --> open