Skip to main content



      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 06:29 Go to next message
Eclipse UserFriend
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 08:18 Go to previous messageGo to next message
Eclipse UserFriend
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 08:29 Go to previous messageGo to next message
Eclipse UserFriend
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 08:45 Go to previous messageGo to next message
Eclipse UserFriend
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 04:20 Go to previous messageGo to next message
Eclipse UserFriend
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 09:26 Go to previous message
Eclipse UserFriend
OK, Thanks for looking at this. Issue created: https://github.com/eclipse/xtext-extras/issues/112
Previous Topic:Issue during Eclipse workspace setup
Next Topic: complete{TypeName}_{FeatureName} called with parent i.s.o. node itself
Goto Forum:
  


Current Time: Sat Jul 05 04:24:38 EDT 2025

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

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

Back to the top