{"action":"created","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/807","repository_url":"https://api.github.com/repos/jakubpawlowicz/clean-css","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/807/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/807/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/807/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/807","id":174704650,"number":807,"title":"[Performance] Strange super slow speed on certain files.","user":{"login":"PeterDaveHello","id":3691490,"avatar_url":"https://avatars.githubusercontent.com/u/3691490?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDaveHello","html_url":"https://github.com/PeterDaveHello","followers_url":"https://api.github.com/users/PeterDaveHello/followers","following_url":"https://api.github.com/users/PeterDaveHello/following{/other_user}","gists_url":"https://api.github.com/users/PeterDaveHello/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDaveHello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDaveHello/subscriptions","organizations_url":"https://api.github.com/users/PeterDaveHello/orgs","repos_url":"https://api.github.com/users/PeterDaveHello/repos","events_url":"https://api.github.com/users/PeterDaveHello/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDaveHello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-02T08:14:12Z","updated_at":"2016-09-07T06:51:38Z","closed_at":null,"body":"Thanks for this awesome project! This really help [CDNJS](https://github.com/cdnjs) minify the css assets easily!\r\n\r\nI just found that clean-css will be super super slow when compressing some files, especially the css files in Google's material-design-icons project, it'll spend more then 10 minutes on a single css file which looks abnormal.\r\n\r\nThis is my environments:\r\n**node versions** : v4.5.0 / 6.3.1 / 6.5.0 and some others ...\r\n**clean-css versions** : v3.4.10 / 3.4.19 and some others ...\r\n**platform** : Ubuntu 14.04.5 (also tried on Arch Linux)\r\n\r\nThere are some of the files with performance issue:\r\nhttps://github.com/google/material-design-icons/blob/3.0.1/sprites/css-sprite/sprite-av-black.css\r\nhttps://github.com/google/material-design-icons/blob/3.0.1/sprites/css-sprite/sprite-action-black.css\r\n\r\nThe size of those files are not so huge:\r\n```\r\n-rw-r--r-- 1 peter peter 108503 Sep  2 08:32 sprite-av-black.css\r\n-rw-r--r-- 1 peter peter 185707 Sep  2 08:32 sprite-action-white.css\r\n```\r\n\r\nThe lines of codes in that two css files:\r\n```\r\n5197 sprite-av-black.css\r\n8904 sprite-action-black.css\r\n```\r\nThe parameters I'm using:\r\n`--compatibility  --s0`\r\n\r\nBut remove all the parameters didn't help at all.\r\n\r\nDo you guys have any idea about that? Many thanks!"},"comment":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/comments/245191212","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/807#issuecomment-245191212","issue_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/807","id":245191212,"user":{"login":"PeterDaveHello","id":3691490,"avatar_url":"https://avatars.githubusercontent.com/u/3691490?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDaveHello","html_url":"https://github.com/PeterDaveHello","followers_url":"https://api.github.com/users/PeterDaveHello/followers","following_url":"https://api.github.com/users/PeterDaveHello/following{/other_user}","gists_url":"https://api.github.com/users/PeterDaveHello/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDaveHello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDaveHello/subscriptions","organizations_url":"https://api.github.com/users/PeterDaveHello/orgs","repos_url":"https://api.github.com/users/PeterDaveHello/repos","events_url":"https://api.github.com/users/PeterDaveHello/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDaveHello/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T06:51:38Z","updated_at":"2016-09-07T06:51:38Z","body":"Awesome! Take [sprite-action-black.css](https://github.com/google/material-design-icons/blob/3.0.1/sprites/css-sprite/sprite-action-black.css) as the example.\r\n\r\nWith `--skip-restructuring`:\r\n\r\n- time spent\r\n```\r\nreal    0m0.792s\r\nuser    0m0.830s\r\nsys     0m0.037s\r\n```\r\n- file size : 153994 bytes (origin: 185707)\r\n\r\nWithout `--skip-restructuring`:\r\n\r\n- time spent\r\n```\r\nreal    15m28.706s\r\nuser    15m27.097s\r\nsys     0m7.753s\r\n```\r\n- file size : 153994 bytes (origin: 185707)\r\n\r\n\r\nThanks @jakubpawlowicz! Hope that  #533 can be solved soon, \r\nseems restructuring didn't really help in this part. :smile: "}}
{"actor":{"display_login":"PeterDaveHello"}}