Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » handling large files
handling large files [message #808170] Mon, 27 February 2012 13:41 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Hi!

We need to be able to handle large files and I notice that after editing at the end of such a file there is quite a long delay in which Eclipse is unresponsive.

I have disable the code folding which I know is a culprit, but it is still too slow.

Do you think there are operations that could be run in the background but aren't?

Do you have any suggestions as to what else I could disable?

best regards,
Vlad
Re: handling large files [message #810668 is a reply to message #808170] Thu, 01 March 2012 12:00 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
A related question about disabling functionality for large files: I know how to disable things for all files, but in this case I need to check how many lines the file has and decide accordingly. How can I get a reference to the Eclipse document? I suspect I have to inject the right object, but I couldn't find which on that is.

Thanks in advance,
Vlad
Re: handling large files [message #811417 is a reply to message #808170] Fri, 02 March 2012 10:12 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
We are already running most probably expensive things in background
(reparsing, validation, semantic highlighting). I'd recommend to find
the hot spot using a profiler.

Am 27.02.12 14:41, schrieb Vlad Dumitrescu:
> Hi!
>
> We need to be able to handle large files and I notice that after editing
> at the end of such a file there is quite a long delay in which Eclipse
> is unresponsive.
>
> I have disable the code folding which I know is a culprit, but it is
> still too slow.
>
> Do you think there are operations that could be run in the background
> but aren't?
> Do you have any suggestions as to what else I could disable?
> best regards,
> Vlad
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: handling large files [message #811421 is a reply to message #810668] Fri, 02 March 2012 10:16 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Well, this depends on from where you look :-)
XtextEditor.getDocument()
is a good start. Also have a look at XtextDocumentUtil


Am 01.03.12 13:00, schrieb Vlad Dumitrescu:
> A related question about disabling functionality for large files: I know
> how to disable things for all files, but in this case I need to check
> how many lines the file has and decide accordingly. How can I get a
> reference to the Eclipse document? I suspect I have to inject the right
> object, but I couldn't find which on that is.
>
> Thanks in advance,
> Vlad
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: handling large files [message #811758 is a reply to message #811421] Fri, 02 March 2012 19:43 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Good point! Smile Looking for stuff to inject makes the more obvious ways to access objects less... obvious.

Thanks!!
regards,
Vlad
Previous Topic:Please, need help on indirect left recursive problem
Next Topic:Problem with ambiguous grammar
Goto Forum:
  


Current Time: Sat Apr 04 16:42:31 GMT 2020

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

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

Back to the top