{"action":"closed","issue":{"url":"https://api.github.com/repos/Templarian/MaterialDesign/issues/1216","repository_url":"https://api.github.com/repos/Templarian/MaterialDesign","labels_url":"https://api.github.com/repos/Templarian/MaterialDesign/issues/1216/labels{/name}","comments_url":"https://api.github.com/repos/Templarian/MaterialDesign/issues/1216/comments","events_url":"https://api.github.com/repos/Templarian/MaterialDesign/issues/1216/events","html_url":"https://github.com/Templarian/MaterialDesign/issues/1216","id":153798042,"number":1216,"title":"Memory usage skyrockets when importing icons.scss","user":{"login":"plestik","id":352732,"avatar_url":"https://avatars.githubusercontent.com/u/352732?v=3","gravatar_id":"","url":"https://api.github.com/users/plestik","html_url":"https://github.com/plestik","followers_url":"https://api.github.com/users/plestik/followers","following_url":"https://api.github.com/users/plestik/following{/other_user}","gists_url":"https://api.github.com/users/plestik/gists{/gist_id}","starred_url":"https://api.github.com/users/plestik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plestik/subscriptions","organizations_url":"https://api.github.com/users/plestik/orgs","repos_url":"https://api.github.com/users/plestik/repos","events_url":"https://api.github.com/users/plestik/events{/privacy}","received_events_url":"https://api.github.com/users/plestik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Templarian/MaterialDesign/labels/High%20Priority","name":"High Priority","color":"e11d21"},{"url":"https://api.github.com/repos/Templarian/MaterialDesign/labels/Question","name":"Question","color":"5319e7"},{"url":"https://api.github.com/repos/Templarian/MaterialDesign/labels/Webfont%20Feature","name":"Webfont Feature","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-09T15:05:17Z","updated_at":"2016-05-16T00:53:54Z","closed_at":"2016-05-16T00:53:54Z","body":"We're having an issue where memory usage for our build process tops out at 2GB. This is because of a couple concurrent tasks. I've pinpointed the usage to icons.scss, specifically [this piece of code](https://github.com/Templarian/MaterialDesign-Webfont/blob/master/scss/_icons.scss#L19-L23). Seems like `nth` is the culprit here. Memory usage when compiling this file goes from anywhere between 300-750mb. If I disable the loop, it uses 60mb at most. I'm not really sure if there are any other specifics, but if I use an object instead of two arrays, the memory usage stays much lower. We're using node 4.2.2 w/ node-sass 3.7.0, via gulp-sass."}}