Groovy performance: what to do