Martin Taal's Blog

About EMF, Teneo, CDO, Texo, Hibernate, Open-Source ERP and other topics

EMFT Texo: using xtend2 for faster generation

with 2 comments

Hi!

A month back a Texo user asked me on the newsgroup about the speed of Texo code generation. His proposal was to use xtend2 as the template technology as it is much faster. As often with proposals and ideas, it takes a while, but then suddenly, motivation and time come together and coding starts.

So from today Texo as a default uses xtend2 as a templating technology. This indeed gives a considerable speed increase!

The nice thing is that I managed to still keep the great feature of allowing overriding and/or extending of templates within a development project. You can do this using xpand templates. So the base standard part of Texo uses fast xtend2, if you want to override/extend you use xpand. This is also nice for backward compatibility as your current xpand overriding/extending templates will work fine!

Thanks for reading and I hope this blog post helps to give Texo a try. Visit the Texo wiki for more information. Let me know if you have any questions or remarks on the EMFT newsgroup or forum!

gr. Martin

About these ads

Written by martintaal

October 12, 2012 at 10:02 pm

Posted in Texo

2 Responses

Subscribe to comments with RSS.

  1. Wow!!! Thanks a lot.
    I’m just so glad to see the things happening such fast!
    And glad to know it indeed help to improve Texo’s code generation speed!

    We have already some customization on the original xpand templates, I will see how to migrate them once I get time.

    Oliver Zhou

    October 14, 2012 at 2:51 am

  2. Hi Oliver,
    For your information, the customization should still be done in xpand. Please post on the newsgroup if you feel that it makes sense to add more customization hooks in the xtend2 templates so that the xpand template’s size can be made smaller.

    gr. Martin

    martintaal

    October 14, 2012 at 8:44 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: