Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xbase expression performance issue with nested feature calls
xbase expression performance issue with nested feature calls [message #1753914] Sun, 12 February 2017 11:29 Go to next message
paul lu is currently offline paul luFriend
Messages: 27
Registered: April 2013
Junior Member
Hi,

We are upgrading an xbase based dsl project from 2.3.1 to 2.10 and met a performance issue. It seems that when an xbase expression is deeply nested with feature calls, the performance is poor.
The following xbase expression in op will always block the IDE:

//file: test.dmodel
package t{
entity M{
op t(){
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
(1..10).forEach[
]]]]]]]]]]

}
}
}

This can be reproduced using the example dmodel project.

We are using a xbase based language for GWT development and need html alike deeply nested structure to express screen layout.

Thanks
Re: xbase expression performance issue with nested feature calls [message #1753916 is a reply to message #1753914] Sun, 12 February 2017 13:18 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 736
Registered: July 2009
Location: Hamburg
Senior Member
Was that faster with prior versions?

Re: xbase expression performance issue with nested feature calls [message #1753917 is a reply to message #1753916] Sun, 12 February 2017 13:29 Go to previous messageGo to next message
paul lu is currently offline paul luFriend
Messages: 27
Registered: April 2013
Junior Member
Yes, version 2.3.1 was much faster and I was able to edit the same code smoothly.
Re: xbase expression performance issue with nested feature calls [message #1753918 is a reply to message #1753917] Sun, 12 February 2017 13:45 Go to previous messageGo to next message
Akos Kitta is currently offline Akos KittaFriend
Messages: 20
Registered: November 2015
Junior Member
Paul,

Could you run a profiler on it? If so, it would be useful if you could share your results.
Re: xbase expression performance issue with nested feature calls [message #1753946 is a reply to message #1753914] Mon, 13 February 2017 09:20 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 495
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Hi Paul, I can confirm that your expression takes significant time. Could you please be so kind to raise an issue here: https://github.com/eclipse/xtext-extras/issues. I would create the profile data then.
Re: xbase expression performance issue with nested feature calls [message #1753972 is a reply to message #1753946] Mon, 13 February 2017 14:26 Go to previous message
paul lu is currently offline paul luFriend
Messages: 27
Registered: April 2013
Junior Member
OK, Thanks for looking at this. Issue created: https://github.com/eclipse/xtext-extras/issues/112
Previous Topic:Standalone executable with multiple DSLs
Next Topic: complete{TypeName}_{FeatureName} called with parent i.s.o. node itself
Goto Forum:
  


Current Time: Fri Apr 28 22:05:22 GMT 2017

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

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