Project: Eclipse_Platform_UI
Bug 371424 WorkbenchPage#getPerspectiveStack() gets called a lot when opening&closing views
Reported: 2012-02-13 16:02:18 | Status: verified fixed

During a cycle of { open view, close view} WorkbenchPage#getPerspectiveStack() gets called about 1,000 times. This method in turn calls EModelService#findElements() which takes some time to search the model. It does not seem that the value returned by getPerspectiveStack() can change during the execution, so I'll add a cache to hold the result of this method.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java