Bug 57499 - [formatting] Code Formatter Performance Problems
Summary: [formatting] Code Formatter Performance Problems
Status: RESOLVED DUPLICATE of bug 57495
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-04-05 15:31 EDT by Chris McLaren CLA
Modified: 2004-09-22 04:07 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 Chris McLaren CLA 2004-04-05 15:31:02 EDT
Using M8 on GTK. Accidentally performed Source->Format (java conventions) on a
large, previously unformatted class (WorkbenchWindow).

Two problems:

1. The operation, while taking a very long time, blocked the UI.

2. After it completed, I performed Edit->Undo and was surprised that the undo
operation took about the same length of time (?) Perhaps performance can be
improved under certain conditions if the the code formatter could consider
copying the text before the format starts and implement undo as a text replace
using the entire original text? (It is so slow to undo, I'm just guessing here
that it is doing the inverse of the format, operation by operation)
Comment 1 Dani Megert CLA 2004-04-07 08:07:58 EDT
Do you have comment formatting enabled? Best would be to attach your formatting
profile.
Comment 2 Nico Seessle CLA 2004-09-22 03:54:10 EDT
Exactly the same report as Bug# 57495 - probably just submitted twice.
Comment 3 Dani Megert CLA 2004-09-22 04:07:27 EDT

*** This bug has been marked as a duplicate of 57495 ***