{"action":"created","issue":{"url":"https://api.github.com/repos/louismullie/treat/issues/84","labels_url":"https://api.github.com/repos/louismullie/treat/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/louismullie/treat/issues/84/comments","events_url":"https://api.github.com/repos/louismullie/treat/issues/84/events","html_url":"https://github.com/louismullie/treat/issues/84","id":40079620,"number":84,"title":"Inclusion of 'treat' gem causes rails app to be very slow","user":{"login":"zacksiri","id":134488,"avatar_url":"https://avatars.githubusercontent.com/u/134488?v=3","gravatar_id":"","url":"https://api.github.com/users/zacksiri","html_url":"https://github.com/zacksiri","followers_url":"https://api.github.com/users/zacksiri/followers","following_url":"https://api.github.com/users/zacksiri/following{/other_user}","gists_url":"https://api.github.com/users/zacksiri/gists{/gist_id}","starred_url":"https://api.github.com/users/zacksiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacksiri/subscriptions","organizations_url":"https://api.github.com/users/zacksiri/orgs","repos_url":"https://api.github.com/users/zacksiri/repos","events_url":"https://api.github.com/users/zacksiri/events{/privacy}","received_events_url":"https://api.github.com/users/zacksiri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-08-12T17:39:25Z","updated_at":"2015-12-04T18:09:27Z","closed_at":null,"body":"For some reason the rails app runs very slow when the treat gem is included in the rails app. basic views with nothing takes 1041ms to render,\r\n\r\nremove treat gem and Voila everything goes back to normal."},"comment":{"url":"https://api.github.com/repos/louismullie/treat/issues/comments/162037899","html_url":"https://github.com/louismullie/treat/issues/84#issuecomment-162037899","issue_url":"https://api.github.com/repos/louismullie/treat/issues/84","id":162037899,"user":{"login":"deevis","id":1319340,"avatar_url":"https://avatars.githubusercontent.com/u/1319340?v=3","gravatar_id":"","url":"https://api.github.com/users/deevis","html_url":"https://github.com/deevis","followers_url":"https://api.github.com/users/deevis/followers","following_url":"https://api.github.com/users/deevis/following{/other_user}","gists_url":"https://api.github.com/users/deevis/gists{/gist_id}","starred_url":"https://api.github.com/users/deevis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deevis/subscriptions","organizations_url":"https://api.github.com/users/deevis/orgs","repos_url":"https://api.github.com/users/deevis/repos","events_url":"https://api.github.com/users/deevis/events{/privacy}","received_events_url":"https://api.github.com/users/deevis/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T18:09:27Z","updated_at":"2015-12-04T18:09:27Z","body":"Here's the issue demonstrated with benchmark-ips:\r\n\r\n irb\r\n2.2.3 :001 > `require 'benchmark/ips'`\r\n => true \r\n\r\n2.2.3 :002 > `require 'active_support/all'`\r\n => true \r\n\r\n2.2.3 :003 > `Benchmark.ips{|x| x.report(\"humanize\") { \"red\".humanize }; x.report(\"titleize\") { \"blue\".titleize } }`\r\n> Calculating -------------------------------------\r\n>             humanize     7.178k i/100ms\r\n>             titleize     6.374k i/100ms\r\n> -------------------------------------------------\r\n>             humanize    124.579k (± 2.0%) i/s -    624.486k\r\n>             titleize    106.295k (± 1.7%) i/s -    535.416k\r\n\r\n2.2.3 :004 > `require 'treat'`\r\n => true \r\n\r\n2.2.3 :005 > `Benchmark.ips{|x| x.report(\"humanize\") { \"red\".humanize }; x.report(\"titleize\") { \"blue\".titleize } }`\r\n> Calculating -------------------------------------\r\n>             humanize     3.646k i/100ms\r\n>             titleize     3.368k i/100ms\r\n> -------------------------------------------------\r\n>             humanize     49.557k (± 2.3%) i/s -    247.928k\r\n>             titleize     45.895k (± 2.2%) i/s -    232.392k\r\n\r\n\r\nSo - just including 'treat' gem has caused some rails basics to start performing at < 50%.  \r\n"}}