Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [atf-dev] javascript validator slowness

John J. Barton wrote:
Responsiveness of the editor is an increasing challenge for Eclipse. Can the "As You Type" validation time-constant be controlled by users? It's pointless to check after every key stroke. I guess a longish delay (1000ms) would make an improvement. Or force the "As You Type" to yield after 200ms. I've not yet had to give up on the Javascript editor, but I had to revert to emacs to edit my JSP files since eclipse simply ground to a halt on one large file.

A smaller fix would make the preference page more accurate so that I know it only controls the unimportant bit, but I guess that is a WebTools problem.

We actually employ a delay of 750ms across all of the source validation implementations. Yielding after an arbitrary amount of time wouldn't work, though, since validation is extensible. 2.0M3 will correctly enable/disable source validation within the current JavaScript editor, and JSP validation overall will be much faster as a result of changes designed for 1.5.2. We're not out of the woods when it comes to handling largish files, but we're still working on it.


--
Nitin Dahyabhai
Structured Source Editing



Back to the top