1 Apr 2004 01:14
Re: Groovy Performance / Compiling to static bytecode
LARSON, BRIAN (SBCSI) wrote: >>There's still heaps more work we can do to improve performance. e.g. >>we've not yet implemented static method dispatch when >>static-typing is >>used. I'll bet, and assume that getting the basic mechanics working is higher-priority. Understand we're < 1.0 here -- at this point I'm most concerned w/ long-term prospects. > We've done some things recently to improve performance in specific > situations. > There is much more that can be done. I looked into this area recently > and > I think it is possible to do more in situations where the compiler can > determine what to call directly from byte code (e.g. as James said, > static typed method calls). Yea, that's the idea. And that the groovy compiler could (at the cost of losing dynamic behavior) infer the static type at compile-time in order to lock-down everything possible on the groovy side. Perhaps a compiler switch for getting a static version of your groovy code. (As everything on the Java side is allready locked down, it seems to me that the interfacing with the Java side part of this would be quite 'easy'.) Apologise if this has already been discussed or if I've missed something obvious, but as an aside, one possibility would be to provide a programming construct to define static methods. (Not <i>static</i>, though!(Continue reading)Talk about your confusing keywords..) Apple's Dylan language used to have such a thing.
Talk about
your confusing keywords..) Apple's Dylan language used to have such a thing.
Agreed and has been fixed AFAIK
RSS Feed