{"issue":{"state":"open","created_at":"2011-11-29T10:07:09Z","updated_at":"2011-11-29T10:07:20Z","user":{"gravatar_id":"e80c46e273aeef40f4fee102a03522cf","id":676671,"url":"https://api.github.com/users/computino","avatar_url":"https://secure.gravatar.com/avatar/e80c46e273aeef40f4fee102a03522cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"computino"},"comments":10,"body":"Ich habe gerade bei einer Auflistung sehr vieler Events (mit Wiederholungen) festgestellt, dass eine Mini-Änderung die Ausführung beschleunigt:\nAktuell (verkürzt), Event.php Zeilen 138-177:\n\n```\nwhile ($objEvents->next())\n{\n  if ($objEvents->recurring)\n  {\n    $arrRepeat = deserialize($objEvents->repeatEach);\n    while ($objEvents->endTime < $intEnd)\n    {\n      $arg = $arrRepeat['value'];\n      $unit = $arrRepeat['unit'];\n      $strtotime = '+ ' . $arg . ' ' . $unit;\n    }\n  }\n}\n```\n\nVorschlag neu:\n\n```\nwhile ($objEvents->next())\n{\n  if ($objEvents->recurring)\n  {\n    $arrRepeat = deserialize($objEvents->repeatEach);\n    $arg = $arrRepeat['value'];\n    $unit = $arrRepeat['unit'];\n    $strtotime = '+ ' . $arg . ' ' . $unit;\n    while ($objEvents->endTime < $intEnd)\n    {\n    }\n  }\n}\n```\n\nNachdem mit PHP5.3 die strtotime() Methode so enorm beschleunigt wurde können so kleine Änderungen helfen wirklich viele Events zu verwalten.\n\n--- _Originally created on November 21st, 2010, at 08:21pm (ID 2687)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":2687,"id":2382467,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"calendar","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/calendar"},{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"}],"title":"Codeoptimierung für getAllEvents()","closed_at":null,"html_url":"https://github.com/contao/test/issues/2687","url":"https://api.github.com/repos/contao/test/issues/2687","milestone":{"state":"open","created_at":"2011-11-29T05:27:05Z","due_on":null,"closed_issues":51,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":32,"title":"2.10.0","description":"Contao 2.10.0 (minor release)","url":"https://api.github.com/repos/contao/test/milestones/32","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-29T10:07:19Z","updated_at":"2011-11-29T10:07:19Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Implementiert in commit:2fc364fe2649d785609f47822e21e726.\n\n--- _Originally created on May 30th, 2011, at 05:33pm_","id":2926684,"url":"https://api.github.com/repos/contao/test/issues/comments/2926684"}}