|Re: Edge Creation Tool [message #1219541 is a reply to message #1219537]
||Wed, 04 December 2013 14:09
|| Pierre-Charles David
Registered: July 2009
Le 04/12/2013 14:55, Guillaume Prêcheur a écrit :|
> I'm newby in sirius/Acceleo3 world, so I don't catch exatly why it's
> better to use the feature:source acceleo définition than the [source/]
> one ? time interpretation ?
Yes, it's mostly about execution time. Using Acceleo for expressions
allow for possibly very complex queries on your models, but its comes
with some up-front cost (mainly parsing and compilation). "feature:" is
very limited (only direct access to a named attribute or reference), but
has almost no overhead compared to calling eGet(featureName). When you
don't need the full power of a Acceleo and can use feature: instead, it
is always recommended to do so.
The same idea applies to "var:" (for direct access to a variable's
value) and "service:" (to invoke custom Java code). Both things can be
done through Acceleo too, but when your expression does nothing more,
using the special syntax will give you better performance.
especially the section entitled "Using the Specialized interpreters" for
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.02309 seconds