|Open an dsl file in xtext editor takes long time [message #1774336]
||Fri, 13 October 2017 05:57
| lee lucky
Registered: October 2017
Recently, I used the xtext editor to open an dsl file of cps model, and I found that when the file size is about 52M, the time of opening is about 505s.
I tracked the codes of opening file and found that there are mainly two parts to consume the time. The first one is the function "setDocumentResource" in XtextDocumentProvider.java file, and the other is the function "createPartControl"( specifically "initializeSourceViewer" in "createPartControl" ) in AbstractTextEditor.java file.
I just want to reduce the time of opening files, can you give me some suggestions about these two parts mentioned above? or any other strategy to reduce the time of opening an dsl file?
Thanks in advance.
Powered by FUDForum
. Page generated in 0.02181 seconds