Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Optimize code generation IO?
Optimize code generation IO? [message #1071567] Sat, 20 July 2013 09:36
Ian Warwick is currently offline Ian Warwick
Messages: 20
Registered: April 2012
Junior Member
In my xtext based languages I use the xtext code generator API to generate java source code, I was wondering if any optimizations are made such as when building if files are already generated and regenerating would equate to the same output are the rewritten?

I just want to make sure I am not unnecessarily generating source when it is not necessary.

I also have a standalone version of my DSL/generator and in that I use the JavaFileSystemAccess implementation which does not appear to do optimizations such as file compare before generating like the eclipse implementation does (sorry I forget the name of that class but it implements IFileSystemAccess.

Is there an optimization benefit to comparing what would be generated to what is generated before generating?

Thanks for xtext! Smile

Previous Topic:Generate equivalent Java statement from XBlockExpression using IGenerator
Next Topic:Xtext grammar for Java?
Goto Forum:
  


Current Time: Fri Aug 22 09:57:52 EDT 2014

Powered by FUDForum. Page generated in 0.04705 seconds