{"action":"created","issue":{"url":"https://api.github.com/repos/Pauan/rollup-plugin-purs/issues/18","repository_url":"https://api.github.com/repos/Pauan/rollup-plugin-purs","labels_url":"https://api.github.com/repos/Pauan/rollup-plugin-purs/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Pauan/rollup-plugin-purs/issues/18/comments","events_url":"https://api.github.com/repos/Pauan/rollup-plugin-purs/issues/18/events","html_url":"https://github.com/Pauan/rollup-plugin-purs/issues/18","id":238791476,"number":18,"title":"Long runtime on large-ish project, even with all optimizations switched off","user":{"login":"jazmit","id":1865974,"avatar_url":"https://avatars1.githubusercontent.com/u/1865974?v=3","gravatar_id":"","url":"https://api.github.com/users/jazmit","html_url":"https://github.com/jazmit","followers_url":"https://api.github.com/users/jazmit/followers","following_url":"https://api.github.com/users/jazmit/following{/other_user}","gists_url":"https://api.github.com/users/jazmit/gists{/gist_id}","starred_url":"https://api.github.com/users/jazmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazmit/subscriptions","organizations_url":"https://api.github.com/users/jazmit/orgs","repos_url":"https://api.github.com/users/jazmit/repos","events_url":"https://api.github.com/users/jazmit/events{/privacy}","received_events_url":"https://api.github.com/users/jazmit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-27T09:35:04Z","updated_at":"2017-06-27T21:54:17Z","closed_at":null,"body":"Running on our medium-sized project (10k LOC of purescript app code + 30k LOC purescript library code, 2.5Mb after  `pulp browserify -O`), the runtime is more than an hour, even with all optimizations turned off.\r\n\r\nThe list of warnings is printed relatively quickly, then rollup hangs for over an hour on my laptop before printing the optimization stats and exiting.  \r\n\r\nI'm sorry I haven't had time to dig further into this, as we're sticking with pulp for now, but I'd thought I'd create this issue to let others know and get some discussion going.\r\n\r\nI'm running NixOS, and installed rollup globally in my user profile.  We're using the following rollup.config:\r\n\r\n```\r\nimport purs from \"rollup-plugin-purs\";\r\n\r\nexport default {\r\n  entry: \"src/Main.purs\",\r\n  format: \"iife\",\r\n  sourceMap: true,\r\n  moduleName: \"PS\",\r\n  plugins: [\r\n    purs({\r\n      runMain: false,\r\n      optimizations: {\r\n        uncurry: false,         // Whether to apply the uncurrying optimization or not\r\n        inline: false,          // Whether to inline some functions or not\r\n        removeDeadCode: false,  // Whether to remove dead code or not\r\n        assumePureVars: false   // Whether to assume that variable assignment is always pure\r\n      }\r\n    })\r\n  ]\r\n};\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Pauan/rollup-plugin-purs/issues/comments/311497336","html_url":"https://github.com/Pauan/rollup-plugin-purs/issues/18#issuecomment-311497336","issue_url":"https://api.github.com/repos/Pauan/rollup-plugin-purs/issues/18","id":311497336,"user":{"login":"Pauan","id":97238,"avatar_url":"https://avatars1.githubusercontent.com/u/97238?v=3","gravatar_id":"","url":"https://api.github.com/users/Pauan","html_url":"https://github.com/Pauan","followers_url":"https://api.github.com/users/Pauan/followers","following_url":"https://api.github.com/users/Pauan/following{/other_user}","gists_url":"https://api.github.com/users/Pauan/gists{/gist_id}","starred_url":"https://api.github.com/users/Pauan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pauan/subscriptions","organizations_url":"https://api.github.com/users/Pauan/orgs","repos_url":"https://api.github.com/users/Pauan/repos","events_url":"https://api.github.com/users/Pauan/events{/privacy}","received_events_url":"https://api.github.com/users/Pauan/received_events","type":"User","site_admin":false},"created_at":"2017-06-27T21:54:17Z","updated_at":"2017-06-27T21:54:17Z","body":"Yes, I've noticed this as well. I'm not sure what the problem is, but I suspect it has to do with Rollup itself."}}
{"actor":{"display_login":"Pauan"}}