Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Open an dsl file in xtext editor takes long time
Open an dsl file in xtext editor takes long time [message #1774336] Fri, 13 October 2017 05:57
lee lucky is currently offline lee luckyFriend
Messages: 26
Registered: October 2017
Junior Member
hi,
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.
Previous Topic:Recognize trailing text as a comment
Next Topic:2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2
Goto Forum:
  


Current Time: Fri Apr 26 11:21:15 GMT 2024

Powered by FUDForum. Page generated in 0.02828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top