Project: Eclipse_Platform_UI
Bug 9721 Performance: avoid writing empty preference files
Reported: 2002-02-13 13:30:55 | Status: resolved fixed

(After conversation with RG) A plug-in's preference store is being written to a file even when there are no preference setting to remember. This is pointless and wasteful. Instead, when a plug-in's preference store does not contain any genuine entries, no file should be written (an existing file must be deleted). This simple change would improve preference saving ( which is also done on plug-in shutdown).

Files changed in fix:
bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/preference/PreferenceStore.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/help/WorkbenchHelp.java bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/plugin/AbstractUIPlugin.java