I'm currently working on a plugin that requires to perform a search for
types on the whole workspace using
org.eclipse.jdt.core.IJavaProject.newTypeHierarchy which is very slow
(nearly 20 sec in my case). Here is a sample code:

1-Is there anyway to optimise this code?
2-If there's not, I want to execute this code at eclipse startup, I'm
wondering if IStartup.earlyStartup executes after projects inside the
workspace are loaded or not.