title: performance issues with groovy getProperty() method
body: <p>suppose that i have a method which has the signature like</p>
  
  <p>def myAction(objet,String propertyName);</p>
  
  <p>i just want to retrieve the property value from objet, i wrote two versions</p>
  
  <p>version 1: I construct the getter method and invoke it on objet</p>
  
  <pre><code>    original = propertyName
      prefix = original.substring(0,1).toUpperCase()
      suffix = original.substring(1,original.length())
      methodName = new StringBuilder('get').append(prefix).append(suffix).toString()
      value = domain.metaClass.invokeMethod(objet,methodName,null)
  </code></pre>
  
  <p>version 2: I use directly getProperty method supplied by GroovyObject</p>
  
  <pre><code>value = objet.getProperty(propertyName)
  </code></pre>
  
  <p>Witch one has better performance?</p>
  
  <p>thinks : )</p>