Hi Adithyan,
How about caching the class instance and reuse it? Here are some
scratch code for your reference:
```
static LRUCache<String, Class> lruCache = new LRUCache<String, Class>(100);
def dslSrc = '''
your DSL source code
'''
def md5 = md5(dslSrc)
def resultClass = lruCache.getAndPut(md5, k -> new GroovyShell().parse
dslSrc)
```
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
