Bug 388702 - [painting] sluggish text redraw in editor when invisible characters enabled
Summary: [painting] sluggish text redraw in editor when invisible characters enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2012-09-03 12:02 EDT by Jacob Lee CLA
Modified: 2013-07-25 03:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Lee CLA 2012-09-03 12:02:55 EDT
When I go to Preferences->Editors->Text Editors and check 'Show Whitespace Characters' the text editor will, at times, be very sluggish (not draw characters as fast as I can type), but at other times will be okay. The problem persists even if I exit Eclipse, and reload the program. However, if I disable this option, performance immediately improves. Checking it again, problem reappears. 

However, sometimes the problem is not apparent at all.

I'm running with 8 gigs ram.
Comment 1 Dani Megert CLA 2012-09-04 02:06:21 EDT
What version and build ID do you have? Which editor are you using?

A reproducible test case would help. I assume it depends on what's visible in the editor.
Comment 2 Dani Megert CLA 2012-09-17 03:21:21 EDT
We would need more data / steps to do anything.
Comment 3 Markus Keller CLA 2012-09-21 05:54:14 EDT
This could also be caused by a combination of settings in the workspace.

I remember that we once had performance problems with "Preferences > Java > Editor: Bracket highlighting > Enclosing brackets", and the effects were as you describe. Basically, it could be anything that causes frequent redraws.
Comment 4 Jacob Lee CLA 2013-07-16 15:13:17 EDT
What is visible in the editor: code, lots of it, with plenty of white space characters. In this case PHP and JavaScript. The sluggishness does not depend on which perspective editor is being used.

It could be some configuration of options, but I have not found any particular combination (aside from enabling visible white space characters of course).

Configuration Details:

Eclipse SDK
Version: 4.2.2
Build id: M20130204-1200

  Eclipse SDK	4.2.2.M20130204-1200	org.eclipse.sdk.ide	null
  JavaScript Development Tools	1.4.1.v201208171701-7H7DFg0FC7sReqSyfqesWi	org.eclipse.wst.jsdt.feature.feature.group	Eclipse Web Tools Platform
  PHP Development Tools (PDT)	3.1.2.201212211235	org.eclipse.php.feature.group	Eclipse.org
  Subversive SVN Connectors	3.0.0.I20130122-1700	org.polarion.eclipse.team.svn.connector.feature.group	Polarion Software
  Subversive SVN Team Provider	1.0.0.I20130122-1700	org.eclipse.team.svn.feature.group	Eclipse.org
  Subversive SVN Team Provider Sources	1.0.0.I20130122-1700	org.eclipse.team.svn.source.feature.group	Eclipse.org
  SVNKit 1.3.8 Implementation (Optional)	3.0.0.I20121228-1700	org.polarion.eclipse.team.svn.connector.svnkit16.feature.group	Polarion Software
  SVNKit 1.7.8 Implementation (Optional)	3.0.0.I20130122-1700	org.polarion.eclipse.team.svn.connector.svnkit17.feature.group	Polarion Software
Comment 5 Dani Megert CLA 2013-07-17 02:28:15 EDT
(In reply to comment #4)
> What is visible in the editor: code, lots of it, with plenty of white space
> characters. In this case PHP and JavaScript. The sluggishness does not
> depend on which perspective editor is being used

Do you also see it when you open the same file(s) in the "normal" Eclipse text editor?
Comment 6 Jacob Lee CLA 2013-07-17 09:46:30 EDT
I will attempt to find out this information. The issue occurs frequently, but sporadically, and I have not been able to find a scenario that reproduces the bug. When it appears, I will try working in the normal eclipse editor.
Comment 7 Dani Megert CLA 2013-07-17 10:02:20 EDT
(In reply to comment #6)
> I will attempt to find out this information. The issue occurs frequently,
> but sporadically, and I have not been able to find a scenario that
> reproduces the bug. When it appears, I will try working in the normal
> eclipse editor.

Dîd you also see in the Java editor, or only JavaScript and PHP?
Comment 8 Jacob Lee CLA 2013-07-17 10:47:51 EDT
I have not had the chance to observe the Java editor for any length of time since I am not had much of anything to do with Java for the last year.
Comment 9 Dani Megert CLA 2013-07-25 03:49:07 EDT
We can't reproduce this and hence do anything here. It might be a problem with the structured source editors, but to know this, you need to be able to tell us, whether it also happens in the Text editor or not.