3 ms·
Depends on what apps he's running. I suspect Xcode is pretty optimized (but buggy as all git-go -I should know. I use it all day), but Slack and VSCode are elec
by ChrisMarshallNY 4y ago
Depends on what apps he's running. I suspect Xcode is pretty optimized (but buggy as all git-go -I should know. I use it all day), but Slack and VSCode are electron apps, and Electron is notorious for eating power.
- fathyb 4y agoFor me Xcode uses a huge amount of power compared to VSCode with the C++ extension, making it barely usable.
- wahnfrieden 4y agoXcode eats power.
- ChrisMarshallNY 4y agoI'll take your word for it. Most of my time is spent on a tethered machine. I also suspect that it depends on what is being done. I'll bet that some types of languages compile hot, while others, cool. UPDATE: I just ran Xcode, doing my basic daily tasks (editing and building), using Activity Monitor, and it was pretty mild. It had a HUGE spike, as it started up, then dropped into single- and double-digits, after that.
- kitsunesoba 4y agoI wonder if it depends on the codebase in question. I've not had too much trouble with Xcode being power hungry on moderately-sized codebases that are entirely or almost entirely idiomatic Swift with Swift Package Manager handling dependencies. I could see this being different for a project that's a mix of Swift, Objective-C, C++, etc though or has a lot of messier Swift code of the sort that makes SourceKit grumpy (deeply nested blocks, etc).
- wahnfrieden 4y agoMostly Swift, all SPM
- fxtentacle 4y agoXCode is so CPU-heavy that I can often type faster than it can display my keystrokes ...
- ouid 4y agoOne hopes that this is always true, if not observably so.
- Dylan16807 4y agoPlease elaborate on what you mean.
- ouid 4y agowell it would certainly be weird if the cpu displayed your keystrokes faster than you type.
- jgwil2 4y agoI think OP's meaning is that he can type two keystrokes sequentially faster than the program can display the first character.
- Dylan16807 4y agoThey want it to display the characters at the same speed they are typed. Faster and slower are not the only options.
- kitsunesoba 4y agoI spend most of my day in Xcode and the only time I see this is when there's a pane with a file open that has contents that makes SourceKit choke. As noted in on of my other comments, in my experience this is usually caused by code smells like deeply nested blocks, really long optional chains, or lots of casting. SwiftUI can also do it with more complex views, which is one of the reasons I've been sticking to UIKit.