Skip to main content


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 10:50 Go to next message
Niek Hulsman is currently offline Niek HulsmanFriend
Messages: 7
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 321 times)
Re: AutoEdit slows down editing of large documents [message #1062946 is a reply to message #1062905] Tue, 11 June 2013 13:57 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
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 14:15 Go to previous message
Niek Hulsman is currently offline Niek HulsmanFriend
Messages: 7
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 Apr 25 07:56:02 GMT 2024

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

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

Back to the top