python - Do comments slow down an interpreted language? -


i asking because use python, apply other interpreted languages (ruby, php, javascript).

am slowing down interpreter whenever leave comment in code? according limited understanding of interpreter, reads program expressions in strings , converts strings code. seems every time parses comment, wasted time.

is case? there convention comments in interpreted languages, or effect negligible?

for case of python, source files compiled before being executed (the .pyc files), , comments stripped in process. comments could slow down compilation time if have gazillions of them, won't impact execution time.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -