{"comment":{"created_at":"2011-10-20T19:10:55Z","body":"Yup it would be a significant change with many options.","updated_at":"2011-10-20T19:10:55Z","url":"https://api.github.com/repos/bmidget/kohana-formo/issues/comments/2472993","id":2472993,"user":{"avatar_url":"https://secure.gravatar.com/avatar/cd3d3408ef8d179e75bff6aa956437aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cd3d3408ef8d179e75bff6aa956437aa","url":"https://api.github.com/users/bmidget","id":37046,"login":"bmidget"}},"action":"created","issue":{"number":147,"created_at":"2011-10-20T09:14:05Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Rendering a Form with a Select Field with a few hundred Options is slow.\r\nIt takes a few seconds.\r\n\r\nTest used:\r\n<pre>\r\npublic function action_formooption()\r\n{\r\n\t$form = Formo::form('options');\r\n\r\n\t$options = array();\r\n\tfor ($i = 0;$i < 900;$i++)\r\n\t{\r\n\t\t$options[] = array($i => $i);\r\n\t}\r\n\r\n\t$form->add_group('test', 'select', $options);\r\n\r\n\tif (Kohana::$profiling === true)\r\n\t{\r\n\t\t// Start a new benchmark\r\n\t\t$benchmark = Profiler::start('Formo', 'Options render Test');\r\n\t}\r\n\r\n\techo $form->render();\r\n\r\n\tif (isset($benchmark))\r\n\t{\r\n\t\t// Stop the benchmark\r\n\t\tProfiler::stop($benchmark);\r\n\t}\r\n\r\n\techo View::factory('profiler/stats');\r\n}\r\n<pre>\r\n\r\nIs there a way to speed this up?","comments":3,"title":"Select Field with a few hundred Options is slow","updated_at":"2011-10-20T19:10:55Z","url":"https://api.github.com/repos/bmidget/kohana-formo/issues/147","id":2002854,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a93dd851f5efa56c1b9a89216fb2fcb9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a93dd851f5efa56c1b9a89216fb2fcb9","url":"https://api.github.com/users/fo3-nik5","id":439128,"login":"fo3-nik5"},"html_url":"https://github.com/bmidget/kohana-formo/issues/147","labels":[],"state":"open"},"legacy":{"issue_id":2002854,"comment_id":2472993}}