Mastering PyCharm Transcripts
Chapter: Why PyCharm and IDEs?
Lecture: IDEs are crazy fast
0:01 Before we get into the details of PyCharm,
0:04 I want to dispel what I consider to be a myth— that IDEs are slow.
0:07 Now, yes, Emacs does technically start faster than PyCharm
0:13 or even maybe faster than Sublime Text,
0:17 but it definitely starts faster than PyCharm.
0:20 However, what are we optimizing for?
0:23 What is the most important thing— how fast your program comes to life,
0:27 or how fast you get your work done?
0:30 In fact, I would say that working with an IDE as you'll see,
0:33 actually lets you work much faster.
0:36 So, while yeah, it might take a second longer to start,
0:39 it's going to let you work a lot faster throughout the day
0:42 and you're just going to start up PyCharm and just leave it going all day anyway,
0:46 so once it's up and running, it doesn't really go any slower.
0:49 All right, so I would say these IDEs are actually faster and they make you faster,
0:54 which is the most important thing you want to optimize for.
0:57 You also might say, "Well these use a lot of battery,"
1:00 because they take a lot of power, they're doing a lot of analysis
1:02 and it runs out the battery or something like this.
1:04 So let's go and actually look at these two things on my Mac here.
1:08 Here's PyCharm, it's already been started
1:11 but I don't have any projects open,
1:14 here you can see this is a project I have previously worked on
1:17 from my MongoDB course, it's just sitting there,
1:19 it's been opened before, so this is like a recent file list,
1:22 it just happens to be only one thing that I recently did
1:25 on this profile here, in this PyCharm.
1:27 Let's see how long it takes to open this,
1:30 just thinking about timing like, "I want my editor be fast,"
1:33 so let's how quick this is.
1:35 Now, remember, I'm recording my screen
1:37 which puts a serious hurting on the performance,
1:39 so this probably is a little underspeed,
1:41 but let's go ahead and it will be hard to hear the clicks, I'll count down for you.
1:44 3, 2, 1 go.
1:48 Oh, that was fast enough, what would you say
1:51 like a 150 milliseconds or something like that?
1:53 We'll do it one more time. 1, 2, 3, go.
1:57 Yeah, so I wouldn't say I'd really worry too much about this dragging you down,
2:01 that is super fast and yeah, it was actually already running
2:04 if I were to quit it and start it from scratch,
2:07 it'll take— who knows, 5 seconds, something like this.
2:11 It feels like maybe 5 or 6, and then it's up and running.
2:15 Like I said, that's 5 seconds in the beginning of the day
2:18 and then you have— I don't know, the entire rest of the day,
2:22 the 7 hours 59 minutes and 55 seconds to be super productive.
2:27 So I would not worry too much about the time it takes to open one of these things.
2:32 Now, if we go over and you look here,
2:35 the other thing I want to talk to you about or show you really quick is
2:38 PyCharm does do a lot of analysis and indexing and stuff,
2:42 it's fine most the time, but if you're down to your last 10% percent of battery
2:47 and you are on an airplane and you just don't want it to drag you down,
2:50 you can come over here and actually type power mode
2:53 you're going to see a ton of features as we go,
2:56 but this one doesn't fit anywhere, so let's talk about it here;
2:59 this power mode lets you actually turn off
3:04 some of the real time analysis and intellisense type things
3:08 that will make it use less energy.
3:12 So if for some reason you need it to run in like a super wimpy environment,
3:15 you could turn on power save mode and it should run more efficiently
3:18 or if you're down to the last 10% of your battery
3:21 you can flip this on and stretch it a little bit farther.