{"action":"closed","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":5,"title":"Select Field with a few hundred Options is slow","updated_at":"2011-10-27T06:30:12Z","url":"https://api.github.com/repos/bmidget/kohana-formo/issues/147","id":2002854,"assignee":{"gravatar_id":"cd3d3408ef8d179e75bff6aa956437aa","avatar_url":"https://secure.gravatar.com/avatar/cd3d3408ef8d179e75bff6aa956437aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/bmidget","id":37046,"login":"bmidget"},"milestone":{"number":5,"created_at":"2011-10-08T19:58:23Z","due_on":"2011-10-11T07:00:00Z","title":"2.0.1","creator":{"gravatar_id":"cd3d3408ef8d179e75bff6aa956437aa","avatar_url":"https://secure.gravatar.com/avatar/cd3d3408ef8d179e75bff6aa956437aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/bmidget","id":37046,"login":"bmidget"},"url":"https://api.github.com/repos/bmidget/kohana-formo/milestones/5","open_issues":0,"closed_issues":3,"description":"Small tweaks","state":"closed"},"closed_at":"2011-10-27T06:30:12Z","user":{"gravatar_id":"a93dd851f5efa56c1b9a89216fb2fcb9","avatar_url":"https://secure.gravatar.com/avatar/a93dd851f5efa56c1b9a89216fb2fcb9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","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":"closed"},"legacy":{"number":147,"action":"closed","issue":2002854}}