Do comments slow down an interpreted language?
- by mvid
I am asking this because I use Python, but it could apply to other interpreted languages as well (ruby, php).
Whenever I leave a comment in my code, is it slowing down the interpreter? My limited understanding of an interpreter is that it reads program expressions in as strings and converts those strings into code. It seems that every time it parses a comment, that is wasted time.
Is this the case? Is there some convention for comments in interpreted languages, or is the effect negligible?