Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » AutoEdit slows down editing of large documents
AutoEdit slows down editing of large documents [message #1062905] Tue, 11 June 2013 06:50 Go to next message
Niek Hulsman is currently offline Niek Hulsman
Messages: 5
Registered: June 2013
Junior Member
It seems that editing of large documents is delayed by the autoedit module. I've attached an image containing the profile results when hitting "Return" at the end of a large document.

index.php/fa/15229/0/

My question is if the autoedit module could be optimized in future versions of xtext?

I'm using the following grammar:

grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals

generate myDsl "--------"

Model:
	greetings+=Greeting*;
	
Greeting:
	{Greeting}
	'Hello' '{' 
		name=ID? '!'?
	'}'
;


And the document looks like this(8000 lines of code):

Hello {
	world!	
}Hello {
	world!	
}Hello {
	world!	
}Hello {
	world!	
}Hello {
...


  • Attachment: autoedit.png
    (Size: 35.58KB, Downloaded 80 times)
Re: AutoEdit slows down editing of large documents [message #1062946 is a reply to message #1062905] Tue, 11 June 2013 09:57 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian Zarnekow
Messages: 2809
Registered: July 2009
Senior Member
Niek,

we'd be more than happy to accept patches which improve the performance
of autoedit. Could you please file a ticket with your findings?

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 11.06.13 14:51, schrieb Niek Hulsman:
> It seems that editing of large documents is delayed by the autoedit module. I've attached an image containing the profile results when hitting "Return" at the end of a large document.
>
>
>
> My question is if the autoedit module could be optimized in future versions of xtext?
>
> I'm using the following grammar:
>
> grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
>
> generate myDsl "--------"
>
> Model:
> greetings+=Greeting*;
>
> Greeting:
> {Greeting}
> 'Hello' '{'
> name=ID? '!'?
> '}'
> ;
>
> And the document looks like this(8000 lines of code):
>
> Hello {
> world!
> }Hello {
> world!
> }Hello {
> world!
> }Hello {
> world!
> }Hello {
> ...
>
>
>
Re: AutoEdit slows down editing of large documents [message #1062954 is a reply to message #1062946] Tue, 11 June 2013 10:15 Go to previous message
Niek Hulsman is currently offline Niek Hulsman
Messages: 5
Registered: June 2013
Junior Member
Sebastian Zarnekow,

I've filed a ticket with my findings here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=410481

Regards,

Niek

Previous Topic:Update of resource description
Next Topic:Outline view flickers when updated
Goto Forum:
  


Current Time: Thu Aug 28 03:15:54 EDT 2014

Powered by FUDForum. Page generated in 0.02743 seconds