[html-formfu] select element with options attribute slowdown

Tobias Kremer list at funkreich.de
Thu May 10 15:03:37 GMT 2007


Hey folks,

I have a somewhat weird problem with select elements that use the
options attribute to specify name/value pairs.

On one of our systems everything works fine whereas on two other systems
the following element in our YAML file tremendously slows down form
rendering.

---
elements:
  - type: select
    name: test
    options: [ [ '', 'Month' ], [ 1, 'January' ], [ 2, 'February' ] ... ]

The following error message is thrown repeatedly (about 30 times with
some noticable delay between them) in the Catalyst error log:

Use of uninitialized value in hash element at
/Library/Perl/5.8.6/HTML/FormFu/Element/group.pm line 108.

(Yes, this is OS X but I'm having the same problem under Linux on
a second machine. On the third Linux machine everything runs just fine.
All machines use the latest SVN trunk for HTML::FormFu and
Catalyst::C::HTML::FormFu.

We have a couple of those elements in one of our form and the Catalyst
action that builds the form takes approximately 10 seconds according to the
Catalyst log (the action does nothing except utilizing C::C::HTML::FormFu's
FormConfig attribute). The test suite doesn't report any errors.

Any ideas?

Furthermore I'd like to know how HTML::FormFu compares in terms of
performance with other form engines. I'm somewhat sceptical about how
a form is assembled with all those TT snippets. Has anyone performed some
benchmarking yet?

Thanks a lot!

--Tobias

_______________________________________________ _  _
(web)         http://www.funkreich.de
(last.fm)     http://www.last.fm/user/soulchild77



More information about the HTML-FormFu mailing list