{"action":"closed","issue":{"url":"https://api.github.com/repos/SomMeri/less4j/issues/277","labels_url":"https://api.github.com/repos/SomMeri/less4j/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/SomMeri/less4j/issues/277/comments","events_url":"https://api.github.com/repos/SomMeri/less4j/issues/277/events","html_url":"https://github.com/SomMeri/less4j/issues/277","id":66874600,"number":277,"title":"OutOfMemory when compiling heavy sources","user":{"login":"alex-bel","id":9787417,"avatar_url":"https://avatars.githubusercontent.com/u/9787417?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-bel","html_url":"https://github.com/alex-bel","followers_url":"https://api.github.com/users/alex-bel/followers","following_url":"https://api.github.com/users/alex-bel/following{/other_user}","gists_url":"https://api.github.com/users/alex-bel/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-bel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-bel/subscriptions","organizations_url":"https://api.github.com/users/alex-bel/orgs","repos_url":"https://api.github.com/users/alex-bel/repos","events_url":"https://api.github.com/users/alex-bel/events{/privacy}","received_events_url":"https://api.github.com/users/alex-bel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-07T12:49:31Z","updated_at":"2015-04-10T11:03:13Z","closed_at":"2015-04-10T11:03:13Z","body":"I'm trying to compile ~84 .less files (~700KB total) via Grails less asset plugin and I'm getting OutOfMemory error on 1Gb heap.\r\nQuick heap dump analysis shows that source files' content is duplicated for each SourceMapGeneratorV3.Mapping class\r\n![Screenshot](http://i.imgur.com/KTjdX76.png)\r\nI beleive some kind of caching should be implemented there to avoid content duplication, but I'm not sure where it should be done - in the grails plugin (it uses custom LessSource implementation) or inside less4j"}}