robfletcher/grails-fields — Issue #52: Rendering performance issue
Author: edgescope
Created: 2012-03-07 21:08:18+00:00
State: open

This is my first go at converting from bean-fields to fields, so hopefully I'm doing something wrong...

I'm migrating an app from grails 1.3.7 to 2.0.1, and in switching from bean-fields to the fields plugin (current version - 1.05), I'm seeing a major performance slowdown.

As an example, I have a form template with 9 fields. If I throw the below timer snippet around the template with bean-fields, the performance averages around 50ms. When I convert the template to use fields, it averages around 3000ms.

```gsp
<% long start = System.currentTimeMillis() %>

"Time to render template = ${System.currentTimeMillis() - start} millis"
```

I haven't done any profiling of the objects, but can if this is abnormal. Is this expected behavior with the current version, or am I doing something wrong? Thanks.