{"action":"created","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2548","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2548/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2548/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2548/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/2548","id":19181749,"number":2548,"title":"Compile times on Visual Studio 2012 slow","user":{"login":"elliotwoods","id":328294,"avatar_url":"https://avatars.githubusercontent.com/u/328294?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotwoods","html_url":"https://github.com/elliotwoods","followers_url":"https://api.github.com/users/elliotwoods/followers","following_url":"https://api.github.com/users/elliotwoods/following{/other_user}","gists_url":"https://api.github.com/users/elliotwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotwoods/subscriptions","organizations_url":"https://api.github.com/users/elliotwoods/orgs","repos_url":"https://api.github.com/users/elliotwoods/repos","events_url":"https://api.github.com/users/elliotwoods/events{/privacy}","received_events_url":"https://api.github.com/users/elliotwoods/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/bug","name":"bug","color":"b31d1d"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/core","name":"core","color":"db6a1f"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/visual%20studio","name":"visual studio","color":"ba4eba"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/windows","name":"windows","color":"244569"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2013-09-09T08:17:45Z","updated_at":"2016-01-09T05:25:27Z","closed_at":"2015-05-26T18:19:35Z","body":"Currently our compile times on Windows are pretty slow.\r\n\r\nI'm wondering if either @leocolomb might have some thoughts on this, or if @obviousjim could bend an ear at Microsoft to give some suggestions.\r\n\r\nEach individual file is slow to compile, and VS doesn't compile in parallel as much as XCode (it compiles seperate projects in parallel within a solution, but not the files within the project). And I presume the duration is simply because there are so many headers associated with each file (so essentially each source file is enormous by the time it makes it the compiler).\r\n\r\nI presume the official line is something like 'use precompiled headers!', and i'm curious what is involved in implementing that.\r\n\r\nMaybe LLVM/GCC is doing some magic to automatically speed up the process (e.g. auto-precompiling headers), and perhaps we need to just squeeze MSVC in the right way to get it to act in the same way. Or VS2013 might bring along magic fixes.\r\n\r\nI haven't had any positive experiences with precompiled headers yet, and am not pressing for them to be a core strategy.\r\n"},"comment":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments/170199317","html_url":"https://github.com/openframeworks/openFrameworks/issues/2548#issuecomment-170199317","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2548","id":170199317,"user":{"login":"elliotwoods","id":328294,"avatar_url":"https://avatars.githubusercontent.com/u/328294?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotwoods","html_url":"https://github.com/elliotwoods","followers_url":"https://api.github.com/users/elliotwoods/followers","following_url":"https://api.github.com/users/elliotwoods/following{/other_user}","gists_url":"https://api.github.com/users/elliotwoods/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotwoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotwoods/subscriptions","organizations_url":"https://api.github.com/users/elliotwoods/orgs","repos_url":"https://api.github.com/users/elliotwoods/repos","events_url":"https://api.github.com/users/elliotwoods/events{/privacy}","received_events_url":"https://api.github.com/users/elliotwoods/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T05:25:27Z","updated_at":"2016-01-09T05:25:27Z","body":"revisiting this. i'm looking into precompiled headers again\r\nmulti-processor compilation definitely helps! but i think good use of precompiled headers still might save the 8 tonnes of carbon dioxide being emitted each year from people compiling cpp's in oF/VS \r\nwill make a new issue once i understand what's what / do some tests"}}