tuliob / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Performance degraded for large XML files #136

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a 'text/xml' text editor with the contents of the following 
document: http://www.w3.org/XML/Binary/2005/03/test-
data/Over100K/factbook.xml

2. The window can can take several minutes to open

What is the expected output? What do you see instead?

The 

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mr.rob.p...@gmail.com on 18 Feb 2010 at 6:44

GoogleCodeExporter commented 9 years ago
That is the case for any large document.  
JSyntaxPane parses the whole document on any change.  Large documents would 
degrade
performance.

Original comment by ayman.al...@gmail.com on 19 Feb 2010 at 6:09

GoogleCodeExporter commented 9 years ago
Issue 141 has been merged into this issue.

Original comment by ayman.al...@gmail.com on 10 Apr 2010 at 5:28

GoogleCodeExporter commented 9 years ago
This problem is easily fixed using one of the approaches I outlined in 
https://code.google.com/p/jsyntaxpane/issues/detail?id=196

Basic cause of the problem is that DefaultEditorKit.read() invokes 
insertString() insanely many times during loading which makes all kind of 
events being triggered.

Original comment by jacob.nordfalk on 1 May 2015 at 8:57