{"push_id":3077381444,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"f038b71fc7a2d679c71031afb67a5bd3557afa42","before":"b1b444287d0d166255bb4e06dbc741a7998b924a","commits":[{"sha":"f038b71fc7a2d679c71031afb67a5bd3557afa42","author":{"name":"Milton Mazzarri","email":"365287514018586b97001f4fcad01b7541d9c375@gmail.com"},"message":"Ignore MIME types without extensions (#31)\n\nGiven the fact that `priv/mime.types` contains a bunch of MIME types\r\nwithout any extension associated, we can discard those values, this\r\nchange should improve the compilation time.\r\n\r\n```console\r\n$ grep -v \"^#\" mime.types | awk '{print NF}' | sort -n | uniq -c | head -n5\r\n   6 0\r\n 847 1\r\n 755 2\r\n  98 3\r\n  32 4\r\n```\r\n\r\nSome quick tests that I did:\r\n\r\n```console\r\nmaster λ touch priv/mime.types\r\nmaster λ time mix compile\r\nCompiling 1 file (.ex)\r\n        2.36 real         2.09 user         0.56 sys\r\nmaster λ touch priv/mime.types\r\nmaster λ time mix compile\r\nCompiling 1 file (.ex)\r\n        2.36 real         2.11 user         0.55 sys\r\n```\r\n\r\nThis branch:\r\n\r\n```console\r\nreduce_compilation_time λ touch priv/mime.types\r\nreduce_compilation_time λ time mix compile\r\nCompiling 1 file (.ex)\r\n        1.74 real         1.54 user         0.47 sys\r\nreduce_compilation_time λ\r\ntouch priv/mime.types\r\nCompiling 1 file (.ex)\r\n        1.76 real         1.54 user         0.48 sys\r\n```","distinct":true,"url":"https://api.github.com/repos/elixir-plug/mime/commits/f038b71fc7a2d679c71031afb67a5bd3557afa42"}]}
{"actor":{"display_login":"josevalim"}}