{"action":"created","issue":{"url":"https://api.github.com/repos/aurels/translation-gem/issues/2","repository_url":"https://api.github.com/repos/aurels/translation-gem","labels_url":"https://api.github.com/repos/aurels/translation-gem/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/aurels/translation-gem/issues/2/comments","events_url":"https://api.github.com/repos/aurels/translation-gem/issues/2/events","html_url":"https://github.com/aurels/translation-gem/issues/2","id":144670962,"number":2,"title":"Gem memory usage","user":{"login":"woahdae","id":25282,"avatar_url":"https://avatars.githubusercontent.com/u/25282?v=3","gravatar_id":"","url":"https://api.github.com/users/woahdae","html_url":"https://github.com/woahdae","followers_url":"https://api.github.com/users/woahdae/followers","following_url":"https://api.github.com/users/woahdae/following{/other_user}","gists_url":"https://api.github.com/users/woahdae/gists{/gist_id}","starred_url":"https://api.github.com/users/woahdae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woahdae/subscriptions","organizations_url":"https://api.github.com/users/woahdae/orgs","repos_url":"https://api.github.com/users/woahdae/repos","events_url":"https://api.github.com/users/woahdae/events{/privacy}","received_events_url":"https://api.github.com/users/woahdae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-30T17:53:04Z","updated_at":"2016-06-30T09:05:27Z","closed_at":null,"body":"I'm looking for ways to reduce the in-memory usage of our app, and noticed translation is half the memory footprint of Rails itself!\r\n\r\nUsing https://github.com/schneems/derailed_benchmarks on my app, I found:\r\n\r\n    translation: 10.9258 MiB\r\n      gettext/tools: 6.9023 MiB\r\n        gettext/tools/msginit: 5.3867 MiB\r\n          locale/info: 4.582 MiB\r\n            locale/info/language: 4.4648 MiB\r\n          gettext/tools/msgmerge: 0.668 MiB (Also required by: gettext/tools)\r\n            text: 0.5313 MiB\r\n        gettext/tools/xgettext: 1.3164 MiB (Also required by: translation_io/railtie)\r\n          gettext/tools/parser/erb: 1.1445 MiB\r\n            gettext/tools/parser/ruby: 1.0977 MiB (Also required by: gettext/tools/xgettext)\r\n              irb/ruby-lex: 1.0039 MiB\r\n                irb/ruby-token: 0.457 MiB\r\n      gettext/po_parser: 2.1328 MiB (Also required by: gettext/tools/msgfmt, gettext/tools/msginit, and 3 others)\r\n      gettext: 0.8828 MiB (Also required by: gettext/tools/xgettext, gettext/tools/parser/glade, and 5 others)\r\n        locale: 0.4336 MiB (Also required by: gettext/tools/xgettext)\r\n          locale/tag: 0.3047 MiB\r\n        gettext/text_domain_manager: 0.4336 MiB (Also required by: translation)\r\n          gettext/text_domain: 0.3867 MiB\r\n      translation_io/client: 0.4961 MiB\r\n\r\nFor the running app, after it's been translated, is there anything I/we can cut? What is \"locale/info/language\" (4.4mb) and \"gettext/po_parser\" (2.1328mb)?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/aurels/translation-gem/issues/comments/229603811","html_url":"https://github.com/aurels/translation-gem/issues/2#issuecomment-229603811","issue_url":"https://api.github.com/repos/aurels/translation-gem/issues/2","id":229603811,"user":{"login":"aurels","id":5442,"avatar_url":"https://avatars.githubusercontent.com/u/5442?v=3","gravatar_id":"","url":"https://api.github.com/users/aurels","html_url":"https://github.com/aurels","followers_url":"https://api.github.com/users/aurels/followers","following_url":"https://api.github.com/users/aurels/following{/other_user}","gists_url":"https://api.github.com/users/aurels/gists{/gist_id}","starred_url":"https://api.github.com/users/aurels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurels/subscriptions","organizations_url":"https://api.github.com/users/aurels/orgs","repos_url":"https://api.github.com/users/aurels/repos","events_url":"https://api.github.com/users/aurels/events{/privacy}","received_events_url":"https://api.github.com/users/aurels/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T09:05:27Z","updated_at":"2016-06-30T09:05:27Z","body":"Hi,\r\n\r\nFollowing up to your email from yesterday, we have been working on that today with @MichaelHoste.\r\n\r\nThe changes are in this branch : \r\nhttps://github.com/aurels/translation-gem/tree/dont-load-gettext-if-disabled\r\n\r\nWhat do you think ? Would you try the branch on your projet to give us your thoughts ?\r\nThat's not what I call beautiful but I think it should work as expected.\r\n\r\nIf you wonder why we still include gettext stuff in `tasks.rb`, that's because our API is GetText-based (even for YAML). So GetText would be loaded when running rake tasks but not in the server/console etc.\r\n\r\n"}}
{"actor":{"display_login":"aurels"}}