Customized editor very slow, what's wrong [message #300334] |
Tue, 07 March 2006 14:45 |
Eclipse User |
|
|
|
Originally posted by: zhiyong.guo.gmail.com
hi all,
I asked this question in SWT group a couple of days ago, but nobody
answers.
I am trying to develop a customized text editor with syntax
highlighting and context proposals. It's very similar with the JavaEditor
example in the plug-ins example package, and it much simpler than the JDT
editor. So far everything is working very well, but only one issue on
performance:
When I edit a big source file (e.g. > 10000 lines), when I type new
code to the document, it's no problem when I was in the top or bottom part
of the editor, but it's very slow (e.g., obvious delays after you type in
a character) in the middle of the document. I could not figure out what's
going on, seems like it's trying to process the whole document from either
top down or bottom up, so that when I was in the middle, it's the worst
case. Could someone give me some suggestions on where I should start
to solve this problem?
Thanks a lot!
John
|
|
|
Powered by
FUDForum. Page generated in 0.03052 seconds