Bug 126709

Summary: ImportRewriteAnalizer#useSpaceBetweenGroups uses 23% cpu time in organize imports performance test
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: CoreAssignee: Martin Aeschlimann <martinae>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Benno Baumgartner CLA 2006-02-07 06:15:04 EST
Version: 3.2.0
Build id: I20060131-1200

Instead of creating a cu, format it and count the number of blank lines one can just read out the current value of the option. This is a lot faster and nicer. I will attach a patch.
Comment 1 Benno Baumgartner CLA 2006-02-07 06:16:19 EST
Created attachment 34262 [details]
Proposed fix
Comment 2 Martin Aeschlimann CLA 2006-02-12 13:25:28 EST
patch released > 20060212
Comment 3 Benno Baumgartner CLA 2006-02-14 04:20:51 EST
Verified for 3.2 M5 using build I20060214-0010