{"action":"created","issue":{"url":"https://api.github.com/repos/daokoder/dao-modules/issues/60","labels_url":"https://api.github.com/repos/daokoder/dao-modules/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/daokoder/dao-modules/issues/60/comments","events_url":"https://api.github.com/repos/daokoder/dao-modules/issues/60/events","html_url":"https://github.com/daokoder/dao-modules/issues/60","id":95827385,"number":60,"title":"Minor: Use gperf for http date headers parsing","user":{"login":"dumblob","id":2451044,"avatar_url":"https://avatars.githubusercontent.com/u/2451044?v=3","gravatar_id":"","url":"https://api.github.com/users/dumblob","html_url":"https://github.com/dumblob","followers_url":"https://api.github.com/users/dumblob/followers","following_url":"https://api.github.com/users/dumblob/following{/other_user}","gists_url":"https://api.github.com/users/dumblob/gists{/gist_id}","starred_url":"https://api.github.com/users/dumblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumblob/subscriptions","organizations_url":"https://api.github.com/users/dumblob/orgs","repos_url":"https://api.github.com/users/dumblob/repos","events_url":"https://api.github.com/users/dumblob/events{/privacy}","received_events_url":"https://api.github.com/users/dumblob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-18T13:59:12Z","updated_at":"2015-07-18T16:01:44Z","closed_at":null,"body":"Because header parsing will be executed very often, the O(n^2) complexity (*for all days/months call `strncmp()`* consequently) should be reduced to O(n) (and `strncmp()` avoided) e.g. by using [gperf](http://www.gnu.org/software/gperf/)-generated perfect hash matching (btw it's already used for Dao language parsing)."},"comment":{"url":"https://api.github.com/repos/daokoder/dao-modules/issues/comments/122558710","html_url":"https://github.com/daokoder/dao-modules/issues/60#issuecomment-122558710","issue_url":"https://api.github.com/repos/daokoder/dao-modules/issues/60","id":122558710,"user":{"login":"Night-walker","id":5074460,"avatar_url":"https://avatars.githubusercontent.com/u/5074460?v=3","gravatar_id":"","url":"https://api.github.com/users/Night-walker","html_url":"https://github.com/Night-walker","followers_url":"https://api.github.com/users/Night-walker/followers","following_url":"https://api.github.com/users/Night-walker/following{/other_user}","gists_url":"https://api.github.com/users/Night-walker/gists{/gist_id}","starred_url":"https://api.github.com/users/Night-walker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Night-walker/subscriptions","organizations_url":"https://api.github.com/users/Night-walker/orgs","repos_url":"https://api.github.com/users/Night-walker/repos","events_url":"https://api.github.com/users/Night-walker/events{/privacy}","received_events_url":"https://api.github.com/users/Night-walker/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T16:01:44Z","updated_at":"2015-07-18T16:01:44Z","body":"The current parsing is meant to be efficient, but without sacrificing simplicity. Dates, for instance, are not interpreted during header parsing. For now at least, squirting out a small performance boost is much less important then keeping things simple and maintainable.\r\n\r\nIf the parsing ever become a bottleneck, then it can be improved. But I don't want to spend time on preemptive optimizations. Of course, you can always do it yourself and post the patch here :)"}}