{"action":"created","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/5792","repository_url":"https://api.github.com/repos/crystal-lang/crystal","labels_url":"https://api.github.com/repos/crystal-lang/crystal/issues/5792/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/5792/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/5792/events","html_url":"https://github.com/crystal-lang/crystal/issues/5792","id":303620558,"number":5792,"title":"Extremely slow compilation and high ram usage for large Arrays and Hashes","user":{"login":"watzon","id":4535422,"avatar_url":"https://avatars0.githubusercontent.com/u/4535422?v=4","gravatar_id":"","url":"https://api.github.com/users/watzon","html_url":"https://github.com/watzon","followers_url":"https://api.github.com/users/watzon/followers","following_url":"https://api.github.com/users/watzon/following{/other_user}","gists_url":"https://api.github.com/users/watzon/gists{/gist_id}","starred_url":"https://api.github.com/users/watzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watzon/subscriptions","organizations_url":"https://api.github.com/users/watzon/orgs","repos_url":"https://api.github.com/users/watzon/repos","events_url":"https://api.github.com/users/watzon/events{/privacy}","received_events_url":"https://api.github.com/users/watzon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-08T20:29:04Z","updated_at":"2018-03-09T00:41:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have a file that holds a single multi-dimensional array with over 40000 entries in it [here](https://github.com/watzon/sterile/blob/master/src/sterile/data/codepoints_data.cr). When I attempt to compile a file that relies on the `transliterate` method which relies on this file compilation times exceed 15 seconds just for a simple file. RAM usage also goes through the roof. Attempting to just run the file rather than compile results in such high RAM usage that my computer freezes.\r\n\r\nI've heard reports of the same thing happening with large hashes, and I'd assume other data structures are affected as well. Is there a way around this that doesn't require having to load all of that data at run time?"},"comment":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/comments/371674677","html_url":"https://github.com/crystal-lang/crystal/issues/5792#issuecomment-371674677","issue_url":"https://api.github.com/repos/crystal-lang/crystal/issues/5792","id":371674677,"user":{"login":"watzon","id":4535422,"avatar_url":"https://avatars0.githubusercontent.com/u/4535422?v=4","gravatar_id":"","url":"https://api.github.com/users/watzon","html_url":"https://github.com/watzon","followers_url":"https://api.github.com/users/watzon/followers","following_url":"https://api.github.com/users/watzon/following{/other_user}","gists_url":"https://api.github.com/users/watzon/gists{/gist_id}","starred_url":"https://api.github.com/users/watzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watzon/subscriptions","organizations_url":"https://api.github.com/users/watzon/orgs","repos_url":"https://api.github.com/users/watzon/repos","events_url":"https://api.github.com/users/watzon/events{/privacy}","received_events_url":"https://api.github.com/users/watzon/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T00:41:34Z","updated_at":"2018-03-09T00:41:34Z","author_association":"CONTRIBUTOR","body":"I see, awesome. Has @akzhan pull requested that yet?"}}
{"actor":{"display_login":"watzon"}}