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.
This issue was reported manually by jglick. It already has 2 duplicates Build: NetBeans IDE Dev (Build 20141110-6ca365d62b59) VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01 OS: Linux User Comments: jglick: Trying to diff a pom.xml to which I had made a one-line change. Why does this take so long? git diff HEAD is instantaneous. jglick: Running a diff. Maximum slowness yet reported was 16069 ms, average is 13706
Created attachment 150703 [details] nps snapshot
maven project loading was triggered by diff DataEditorSupport.getSourceDocument() -> FileEncodingQuery.getEncoding() -> FOQ.getOwner() -> ... and resolving the projects dependencies eat up most of the necessary time similar scenario with other snapshots
EditableDiffView.getSourceDocument() -> FEQ -> FOQ -> NbMavenProjectFactory.loadProject() not much we can do about it in maven - loading a project takes time please evaluate if this has to be called in AWT
Fix: core-main #43d47b394a48 Changeset: 43d47b394a48 Message: Reschedule opening file to a background thread.
Integrated into 'main-silver', will be available in build *201507170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/43d47b394a48 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #248900 - Git diff is ridiculously slow Reschedule opening file to a background thread.