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 172729 - [69cat][68cat] Save of form blocks EQ
Summary: [69cat][68cat] Save of form blocks EQ
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
: 175530 187938 188733 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-22 02:52 UTC by Michel Graciano
Modified: 2017-12-04 10:13 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 156978


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2009-09-22 02:52:50 UTC
Build: NetBeans IDE Dev (Build 200909210201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386
User comments: 
Maximum slowness yet reported was 13292 ms, average is 12380
Comment 1 Jan Stola 2009-10-07 15:00:36 UTC
Copying evaluation from a "duplicate" issue 170495 - tpavek wrote:

The profiling snapshots show saving forms take long due to resolving imports to eliminate fully qualified names in the 
generated code (code is generated as part of saving). Saving is intentionaly replanned to AWT event thread. Lots of 
operations in GUI builder needs to be done in AWT thread; I don't remember the exact reasons why it is needed also for 
saving [1] - but changing that is very likely non-trivial.

A workaround is to set the form to use fully qualified names (not try to eliminate them), then saving is fast.

[1] http://hg.netbeans.org/main/rev/4aae6d952a0a
Comment 2 Jan Stola 2009-10-27 16:49:26 UTC
*** Issue 175530 has been marked as a duplicate of this issue. ***
Comment 3 Michel Graciano 2009-10-27 16:57:23 UTC
IMHO this is an P1, since we have more than 50 duplicates at http://statistics.netbeans.org/analytics/detail.do?id=155052
with the same behaviour. Well, about  don't say to me just don't use the feature where Matisse should use imports instead 
FQN, I will not just don't use an feature because an regression. For versions before 6.7 I have no problems saving forms.
Another point is that just use wait cursor is not acceptable, the fix-import should be fast as before to increase the 
users experience. We have several users here and all of us face this kind of problem, even for 6.7.
Comment 4 Tomas Pavek 2009-10-27 17:18:42 UTC
The FQN elimination feature itself is the "regression", the reason why it is slow. Saving used to be fast when there 
was no FQN elimination available.

Honestly, we don't know how to make it faster. Even replaning out of AWT is difficult for us and probably not helping 
at all, because save action must be synchronous. So if the FQN elimination is found unbearably slow, I'm afraid the 
only option for 6.8 is to turn it off... Other ideas?
Comment 5 Michel Graciano 2009-10-27 18:11:52 UTC
> The FQN elimination feature itself is the "regression", the reason why it is slow. Saving used to be fast when there 
> was no FQN elimination available.
No, even an already saved form, if I just edit an text field property, text property for example, and save again, it is 
really slow again. I just can't see any difference between save an new form and an already saved form, and the time 
increase with the size of form as expected.

> Honestly, we don't know how to make it faster. Even replaning out of AWT is difficult for us and probably not helping 
> at all, because save action must be synchronous. So if the FQN elimination is found unbearably slow, I'm afraid the 
> only option for 6.8 is to turn it off... Other ideas?
No, I have no ideas about it... not yet at least :(
Just to make clear, I just testing these things in 6.5.1 and it is slow as 6.8. I really thought it was faster. BTW, I 
fell fix-import in editor really slower than before, what is the probably root cause in this issue. I can see in 6.8 the 
slowness detector for almost all fix-imports I do all day long, and I just can't see my IDE freeze in previous versions 
(previous than 6.7).
Comment 6 Tomas Pavek 2010-06-22 14:49:36 UTC
*** Bug 187938 has been marked as a duplicate of this bug. ***
Comment 7 Jan Stola 2010-07-22 11:32:08 UTC
*** Bug 188733 has been marked as a duplicate of this bug. ***