This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191790 - Cannot change the time of firing "Code completion was slow" notification and "Saving Snapshot" action
Summary: Cannot change the time of firing "Code completion was slow" notification and ...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 12:11 UTC by zvk77
Modified: 2010-11-26 06:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zvk77 2010-11-10 12:11:42 UTC
I have problem  with "Code completion was slow" notification and "Saving Snapshot" action when i try to invoke Code Completion.
 
As described here http://wiki.netbeans.org/FitnessViaPostMortem , 
section
What our users shall do?
 -> I don't care about slowness

It is possible to increase the start time of "Slowness detected" notification and "Saving Snapshot":
===cite===

In case you are annoyed by the "slowness detector" you may disable it by providing additional properties when launching NetBeans. For example to report only blockages higher than 10s use: 
-J-Dorg.netbeans.core.TimeableEventQueue.report=10000

You can also increase the time when the sampling starts: 
-J-Dorg.netbeans.core.TimeableEventQueue.quantum=1000

===/cite===

I set such parameters in Netbeans start shortcut
netbeans.exe -J-Dorg.netbeans.core.TimeableEventQueue.report=35000 -J-Dorg.netbeans.core.TimeableEventQueue.quantum=30000

... but these settings does not work!
I still have annoying notification and "Saving Snapshot" action even in approximately 2-5 seconds when I try to use Code Completion! 
NB does not wait 30 seconds or 35 seconds.
This VERY slow my work. I'm tired of waiting every time for few seconds.

I use NB 7.0m2, PHP build.

Maybe it's my mistake in something? If not, please correct it!
Comment 1 Jaroslav Tulach 2010-11-11 09:45:01 UTC
If you want to turn this off, you can run with disabled assertions. E.g. remove -ea from etc/netbeans.conf file. That disables various checks including slowness detection for code completion.
Comment 2 zvk77 2010-11-11 12:42:56 UTC
Yes. I confirm, that replacing "-J-ea" to "-J-da" disables slowness detection for code completion and "saving snapshot".

But Code Completion is anyway really slow.

My computer is dual core 3GHz , 1.5GBytes of memory, WinXP, I optimize system performance, I give big amount of memory to NB (-J-Xmx512m -J-Xms256m, and usually NB use approx. 100MB of 256 heap), but NB still VERY slow on code completion. 

Sometime is faster to write code by fingers instead of using code completion. :^(

Even without "-J-ea" Netbeans wait sometime for few seconds...
Comment 3 Jaroslav Tulach 2010-11-11 14:12:06 UTC
The slowness detector is not making your system slower. Disabling it cannot dramatically make anything faster. If you are dissatisfied with with performance PHP code completion, report new P2 bug and stuff it with few profiler snapshots, so the guys can investigate what is going on.
Comment 4 Jaroslav Tulach 2010-11-25 12:04:20 UTC
core-main#d4325103ea78
Comment 5 Quality Engineering 2010-11-26 06:14:17 UTC
Integrated into 'main-golden', will be available in build *201011260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d4325103ea78
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #191790: Configurable report time for completion slowness