Bug 84912 [KeyBindings] performance: Lots of garbage when editor gains/loses focus
build i0208 Not sure where to enter this report. Adding Tod and John to CC as they will be involve in performance work this release. I have the Platform/UI heap usage plug-in installed. I notice that when I switch focus from the editor to a view (e.g. Outline), the heap usage increases by a meg or 2. Putting focus back to the editor does the same. This happens with both the text editor and more prominatly with the Java editor. It doesn't matter if the view is docked or is a fast view.
bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/BindingManager.java
mergedBindings.addAll(bindingCollection);
			}
		}
		return mergedBindings;
	}
	/**
	 * <p>
	 * Returns the active bindings for a particular command identifier. This
	 * method operates in O(n) time over the number of bindings.
	 * </p>
	 * <p>
	 * This method completes in <code>O(n)</code>, where <code>n</code> is
	 * the number of active bindings. If the active bindings are not yet
	 * computed, then this completes in <code>O(n+mn)</code>, where
	 * <code>n</code> is the number of bindings and <code>m</code> is the
	 * number of deletion markers.
	 * </p>
	 * </p>
	 * 
	 * @param commandId
	 *            The identifier for the command whose bindings you wish to
	 *            find. This argument may be <code>null</code>.
	 * @return The collection of active triggers (<code>TriggerSequence</code>)
	 *         for a particular command identifier. This value is guaranteed to
	 *         never be <code>null</code>, but it may be empty.
	 */
	public final Collection getActiveBindingsFor(final String commandId) {
		final Iterator entryItr = getActiveBindings().entrySet().iterator();
		final Collection bindings = new ArrayList();
		while (entryItr.hasNext()) {