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 253341

Summary: ProjectUtilities.storeProjectOpenFiles should not change project config if there is no change in opened files
Product: projects Reporter: Tomas Hurka <thurka>
Component: Generic Projects UIAssignee: Tomas Stupka <tstupka>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE shutdown stacktrace

Description Tomas Hurka 2015-07-07 15:12:30 UTC
Currently ProjectUtilities.storeProjectOpenFiles() always creates OPEN_FILES_ELEMENT even if the list of opened files is empty. It also deletes all persisted data and adds new one even if there is no change in list of opened files. All this changes slow down  IDE shutdown especially if there is a lot of opened projects.
Comment 1 Tomas Hurka 2015-07-07 15:14:46 UTC
Created attachment 154507 [details]
IDE shutdown stacktrace

Attached stacktrace illustrates the issue.
Comment 2 Tomas Stupka 2015-07-22 17:09:47 UTC
fixed in jet-main #41100e01c2e3
Comment 3 Quality Engineering 2015-07-23 01:14:03 UTC
Integrated into 'main-silver', will be available in build *201507230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/41100e01c2e3
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #253341 - ProjectUtilities.storeProjectOpenFiles should not change project config if there is no change in opened files
Comment 4 Tomas Stupka 2015-07-27 09:32:55 UTC
fix was wrong - reverted, reopened ...
Comment 5 Tomas Stupka 2015-07-30 11:18:06 UTC
fixed in jet-main #5a0d4a65ef33
Comment 6 Quality Engineering 2015-07-31 01:50:25 UTC
Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5a0d4a65ef33
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #253341 - ProjectUtilities.storeProjectOpenFiles should not change project config if there is no change in opened files