Community
Participate
Working Groups
every time ClasspathEntry.rootID() is called (which happens quite a lot) a new StringBuffer is created, then a new string is appended to it and the buffer is toString'd. the code is sth like: case IClasspathEntry.CPE_LIBRARY : return "[LIB]"+this.path; //$NON-NLS-1$ maybe this could be avoided somehow - i'm not sure but if the entry kind are the path are not-modifiable (which seems to be the case), then rootID can be computed only once for each object. however, that said, i did not check if it really is the case that rootID is indeed called many times on the same object. if it is not true - feel free to close as 'bogus'. i mean, as 'invalid'.
Now caches the rootID on the classpath entry itself, and also changed senders to avoid using rootID aware code (some of them). Fixed.
Verified.