Quick Tip #9 - Better Responsivenes of Error Marks and Hints



I've seen in one of the web discussions somebody complaining that NetBeans editor is not enough responsive when errors in code are being marked. Well, there's one option which can make things work much faster:



The magical option is Tools | Options | Editing | Java Sources | Automatic Parsing Delay. It sets how long should the IDE wait before the sources get parsed. The default value is 2000 ms and to make error marks faster I've changed it to 500 ms. Why is the value higher by default? Parsing the sources takes quite a lot of CPU cycles and if it would be too small NetBeans could have performance problems on slower machines. The parsing is activated after defined time of no activity and you certainly don't want to run the parser after every keystroke. You can tweak this option depending on your hardware - if you have a really fast CPU you set a smaller delay and get better responsiveness.

This option influences the following features:
  • speed of marking of red error "X" signs in editor gutter
  • speed of error underlining of lines containing errors
  • speed of error stripe (downloadable from update center)
  • speed of editor hints aka quick fixes (downloadable from update center)
Use this option cautiously and don't complain to me that the IDE takes too much of your CPU if you set the value too low. I will be able to use a short delay because this beauty is now being installed for me.
Comments:

Because of that beauty, I would like to work for Sun too. :-) Just for that beauty. Hope you will get really power one, with all those fast memmory, at least 2 GB, two cpus, great SCSI disks.

Posted by Wincent Wega on červenec 11, 2005 at 04:45 odp. CEST #

Post a Comment:
Comments are closed for this entry.
About

Roman Strobl

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today