Community
Participate
Working Groups
20050422 For an other bug I was looking at the open editor performance: - copy OS.java from swt.win32 to a new project -> several compiler errors in file - open this file in a Java editor with outline -> 1419 fields, 4 initializers and 780 methods What is interesting is that mostly in JavaElementInfo.addChild When adding a child a 'contains' test is performed that compares each child with each one resulting in over 1'000'000 calls of equals. If that 'contains' test really required here? Whouldn't the SourceElementParser only return different children?
Created attachment 20236 [details] invocation times contact me for full snapshot
build is 20050420 + jdt.core/ui HEAD from 20050422
Will keep this optimization for post 3.2
Reopening as this appears to be a bottleneck in latest
*** This bug has been marked as a duplicate of 134255 ***