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 244175 - Compile on save slow to generate class files
Summary: Compile on save slow to generate class files
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-29 14:50 UTC by mclaborn
Modified: 2016-07-07 07:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (107.31 KB, text/plain)
2014-04-29 14:50 UTC, mclaborn
Details
NB profiler: started just before save of source file, stopped a few seconds after (280.56 KB, application/x-netbeans-profiler-npss)
2014-04-29 14:52 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2014-04-29 14:50:51 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.2.0-61-generic running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03

The compile-on-save function seems slow in generating class files.

By examining the time stamps on the source and the generated class files, I'm seeing a 6 second delay between the save of the source file and the class files.

The file in question (OrderPost.java) is 6800 lines of source code, and generates 22 class files (the main and 22 inner classes). There are numerous references to other classes, both in the same and in other NB projects.

6 seconds seems to be slow for a compile of this size.  

My computer is 8 cores of "Intel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz".

It certainly feels slower than it was in NB 7.
Comment 1 mclaborn 2014-04-29 14:50:54 UTC
Created attachment 147007 [details]
IDE log
Comment 2 mclaborn 2014-04-29 14:52:35 UTC
Created attachment 147009 [details]
NB profiler: started just before save of source file, stopped a few seconds after
Comment 3 Milos Kleint 2014-04-29 15:56:11 UTC
what really performing anything is the EditorParsingLoop thread.
Comment 4 Tomas Zezula 2014-05-17 16:14:35 UTC
The CoS is blocked by Java Overridden annotations.
Comment 5 markiewb 2014-06-12 09:48:42 UTC
@Tomas: Any news here? It is annoying and lowers my productivity. I always have to try 3 times and wonder if the class is already compiled or not.
Comment 6 mclaborn 2014-06-12 14:23:43 UTC
Strongly agree with markiewb - productivity is much lowered.
Comment 7 Tomas Zezula 2014-06-16 15:41:28 UTC
>I always have to try 3 times and wonder if the class is already compiled or not.
It's not caused by this issue. Please create a new issue on Maven, the Maven has to wait unless for CoS before it executes the project.
This issue causing that the CoS execution takes longer time than it's needed.
Comment 8 markiewb 2014-07-07 16:23:21 UTC
(In reply to Tomas Zezula from comment #7)
> It's not caused by this issue. Please create a new issue on Maven
Done. https://netbeans.org/bugzilla/show_bug.cgi?id=245453
Comment 9 Martin Balin 2016-07-07 07:19:09 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss