It's a comprehensive question of the language of development. How fast does an annotation affect the execution speed?

Asked 2 years ago, Updated 2 years ago, 18 views

I was practicing coding and suddenly got curious, so I'm leaving a question. I usually practice with Python. When it's hard to tell or when you need a lot of explanation, I tend to add a lot of comments. But if it affects the performance a little bit, I'm not sure if I should lose weight. I wonder how much the annotation affects the speed at which the program runs.

python

2022-09-22 20:23

1 Answers

It's not crazy at all. In the case of Python, in the process of converting to pyc, all the unnecessary elements that the machine sees are blown away.


2022-09-22 20:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.