Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JvmTypeReference performance proxy resolution
JvmTypeReference performance proxy resolution [message #1752874] Mon, 30 January 2017 08:17 Go to next message
Didier Didos is currently offline Didier DidosFriend
Messages: 14
Registered: April 2016
Junior Member
Hello,

I'm trying to improve performance of my dsl, and I have a question.

I want to create a field a class using toField method, my input is an JvmTypeReference as usual.
I want to "convert" this JvmTypeReference to an java collection type of that JvmTypeReference.

In my case, JvmTypeReference is an proxy to another type define in my dsl language, and using "typeRef(List, ref.type)", it resolve the proxy each time.

Is it possible to not resolve proxy in that case?

Re: JvmTypeReference performance proxy resolution [message #1752876 is a reply to message #1752874] Mon, 30 January 2017 08:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
do you know the name of ref.type?
if yes you could use something like

typeRef(List,name.typeRef)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: JvmTypeReference performance proxy resolution [message #1752884 is a reply to message #1752876] Mon, 30 January 2017 10:46 Go to previous messageGo to next message
Didier Didos is currently offline Didier DidosFriend
Messages: 14
Registered: April 2016
Junior Member
Thanks Chistian,

With name, not sure to fully understance, is it JvmTypeReference.getSimpleName or fullyQualifiedName for instance?
it will not call proxy resolution by doing fullyQualifiedName ?
Re: JvmTypeReference performance proxy resolution [message #1752897 is a reply to message #1752884] Mon, 30 January 2017 12:16 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
at least it should not be called upfront.
and no it needs to be the qualified name


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Previous Topic:Formatting after external EMF change
Next Topic:emfcompare and 'outline view' for DSL's defined using xtext
Goto Forum:
  


Current Time: Mon Dec 02 17:26:21 GMT 2024

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

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

Back to the top