{"action":"opened","issue":{"url":"https://api.github.com/repos/cake-build/cake/issues/2179","repository_url":"https://api.github.com/repos/cake-build/cake","labels_url":"https://api.github.com/repos/cake-build/cake/issues/2179/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/2179/comments","events_url":"https://api.github.com/repos/cake-build/cake/issues/2179/events","html_url":"https://github.com/cake-build/cake/issues/2179","id":328827522,"node_id":"MDU6SXNzdWUzMjg4Mjc1MjI=","number":2179,"title":"Cake Build Tool's Startup is Slow - 25s (64% overhead)","user":{"login":"WalkerCodeRanger","id":186398,"node_id":"MDQ6VXNlcjE4NjM5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/186398?v=4","gravatar_id":"","url":"https://api.github.com/users/WalkerCodeRanger","html_url":"https://github.com/WalkerCodeRanger","followers_url":"https://api.github.com/users/WalkerCodeRanger/followers","following_url":"https://api.github.com/users/WalkerCodeRanger/following{/other_user}","gists_url":"https://api.github.com/users/WalkerCodeRanger/gists{/gist_id}","starred_url":"https://api.github.com/users/WalkerCodeRanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalkerCodeRanger/subscriptions","organizations_url":"https://api.github.com/users/WalkerCodeRanger/orgs","repos_url":"https://api.github.com/users/WalkerCodeRanger/repos","events_url":"https://api.github.com/users/WalkerCodeRanger/events{/privacy}","received_events_url":"https://api.github.com/users/WalkerCodeRanger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-03T13:09:46Z","updated_at":"2018-06-03T13:09:46Z","closed_at":null,"author_association":"NONE","body":"### What You Are Seeing?\r\nWhen I clone the [example repo](https://github.com/cake-build/example), and time the build command, there is A LOT of overhead time on the build even after repeated builds so it has had a chance to download everything and cache anything. That is, a lot of the time is spent loading cake and compiling the build script. See below for exact numbers.\r\n \r\n### What is Expected?\r\nThere should be less than a couple seconds of overhead from the build tool. 25s might be acceptable for a build on a build server, but it is unacceptable for a workflow where you repeatedly run the build locally each time you need feedback on compilation errors.  You can't be waiting half a minute for every build to even start.\r\n\r\n### What version of Cake are you using?\r\nv0.28.0\r\n\r\n### Are you running on a 32 or 64 bit system?\r\n64 Bit\r\n\r\n### What environment are you running on?  Windows? Linux? Mac?\r\nWindows 7 Pro\r\n\r\n### Are you running on a CI Server?  If so, which one?\r\nNo\r\n\r\n### How Did You Get This To Happen? (Steps to Reproduce)\r\n1. Clone the [example repo](https://github.com/cake-build/example)\r\n2. Run a build `./build.ps1`, ignore the timing of this build, it is downloading things for the first time etc.\r\n3. Run a second build using the powershell command to time it `Measure-Command { ./build.ps1 -Verbosity Verbose -Verbose | Out-Host }`\r\n\r\nThe end of the build output is:\r\n```\r\nTask                          Duration\r\n--------------------------------------------------\r\nClean                         00:00:00.0557395\r\nRestore-NuGet-Packages        00:00:02.5100364\r\nBuild                         00:00:07.7906003\r\nRun-Unit-Tests                00:00:03.5055638\r\nDefault                       00:00:00.0071490\r\n--------------------------------------------------\r\nTotal:                        00:00:13.8690890\r\n\r\n\r\nDays              : 0\r\nHours             : 0\r\nMinutes           : 0\r\nSeconds           : 38\r\nMilliseconds      : 407\r\nTicks             : 384074655\r\nTotalDays         : 0.000444530850694444\r\nTotalHours        : 0.0106687404166667\r\nTotalMinutes      : 0.640124425\r\nTotalSeconds      : 38.4074655\r\nTotalMilliseconds : 38407.4655\r\n```\r\n\r\nYou can see that Cake reported 13.8s total time. But powershell reported 38.4s total time. A difference of almost 25s. Almost all of which comes during the startup of cake. Repeated runs show similar results.  \r\n\r\nYour development machine may be faster reducing the pain, but it still shouldn't be 64% of the total time."}}
{"actor":{"display_login":"WalkerCodeRanger"}}