Community
Participate
Working Groups
Searching for duplicates in a large file, (for example long array definition several thousands elements) takes a lot of time. The problem is searching for current maximum counter value using increments. protected void resolveDuplicates(SourceRefElement handle) { while (this.newElements.containsKey(handle)) { handle.occurrenceCount++; } } takes n^2*o(1) times. n elements, n searches in hashtable.
Created attachment 146663 [details] patch for resolve duplicates performance issue The solution suggested by Alex Panchenko.
committed to branch and head