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 - ProjectUtilities.storeProjectOpenFiles should not change project config if there is no change in opened files
Summary: ProjectUtilities.storeProjectOpenFiles should not change project config if th...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2015-07-07 15:12 UTC by Tomas Hurka
Modified: 2015-07-31 01:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE shutdown stacktrace (5.34 KB, text/plain)
2015-07-07 15:14 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
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