{"action":"created","issue":{"url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/4","labels_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/4/comments","events_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/4/events","html_url":"https://github.com/mroth/phoenix-showdown/issues/4","id":50454198,"number":4,"title":"Martini improvement","user":{"login":"ProTip","id":271965,"avatar_url":"https://avatars.githubusercontent.com/u/271965?v=3","gravatar_id":"","url":"https://api.github.com/users/ProTip","html_url":"https://github.com/ProTip","followers_url":"https://api.github.com/users/ProTip/followers","following_url":"https://api.github.com/users/ProTip/following{/other_user}","gists_url":"https://api.github.com/users/ProTip/gists{/gist_id}","starred_url":"https://api.github.com/users/ProTip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProTip/subscriptions","organizations_url":"https://api.github.com/users/ProTip/orgs","repos_url":"https://api.github.com/users/ProTip/repos","events_url":"https://api.github.com/users/ProTip/events{/privacy}","received_events_url":"https://api.github.com/users/ProTip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-30T10:54:26Z","updated_at":"2015-01-26T14:58:20Z","closed_at":"2015-01-26T14:58:20Z","body":"I was curious about the slowness of Martini so I did some profiling and discovered that the Static middleware always runs even when routes match.  This in turn causes a lot of system calls for opening directories and files.  I got a nice boost by disabling this(it's not actually used in this benchmark anyway).  If you're still looking at any of this I'd be curious to see what numbers you get by not setting up the Static middleware.  I might chase this up with the Martini guys and see if there is a way to ensure it runs after the route matching."},"comment":{"url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/comments/71472878","html_url":"https://github.com/mroth/phoenix-showdown/issues/4#issuecomment-71472878","issue_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/4","id":71472878,"user":{"login":"mroth","id":40650,"avatar_url":"https://avatars.githubusercontent.com/u/40650?v=3","gravatar_id":"","url":"https://api.github.com/users/mroth","html_url":"https://github.com/mroth","followers_url":"https://api.github.com/users/mroth/followers","following_url":"https://api.github.com/users/mroth/following{/other_user}","gists_url":"https://api.github.com/users/mroth/gists{/gist_id}","starred_url":"https://api.github.com/users/mroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroth/subscriptions","organizations_url":"https://api.github.com/users/mroth/orgs","repos_url":"https://api.github.com/users/mroth/repos","events_url":"https://api.github.com/users/mroth/events{/privacy}","received_events_url":"https://api.github.com/users/mroth/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T14:58:19Z","updated_at":"2015-01-26T14:58:19Z","body":"Thanks @ProTip.  Most of the other frameworks also do static file as default, but good to note it makes a difference to disable it.  Also, we just integrated another Go based framework with improved performance characteristics!"}}