Bug 249511 - [ltk] TextChange.perform(...) should not use unrestricted rewrite session for small changes
Summary: [ltk] TextChange.perform(...) should not use unrestricted rewrite session for...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: fix candidate
Keywords: performance
Depends on:
Blocks: 190810
  Show dependency tree
 
Reported: 2008-10-02 11:34 EDT by Dani Megert CLA
Modified: 2010-04-08 08:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2008-10-02 11:34:04 EDT
3.4, 3.5 M2.

org.eclipse.ltk.core.refactoring.TextChange.perform(IProgressMonitor) always uses org.eclipse.jface.text.DocumentRewriteSessionType.UNRESTRICTED even if the changes are small.

We should measure the impact of the changes (text edits) and use UNRESTRICTED_SMALL for small changes.