groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject About extracting common methods to reduce the size of class files
Date Mon, 22 Jan 2018 13:12:46 GMT
Hi all,

       `$getStaticMetaClass`, `getMetaClass`, `setMetaClass`,
`invokeMethod`, `getProperty`, `setProperty`, etc. are generated for all
groovy classes(implements `groovy.lang.GroovyObject`). In order to reduce
the size of class files and speed up generating class files, I suggest
extracting the implementation of the common methods to the existing
interface `groovy.lang.GroovyObject` by leveraging the power of Java8's
default method feature.

        Any thoughts?

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message