Answer the question
In order to leave comments, you need to log in
Does the number of comments affect code performance?
Perhaps a stupid question, but still - does the number of lines of comments affect the performance of the code?
Answer the question
In order to leave comments, you need to log in
Parsing time is affected, but the main costs are repaint and reflow . So the number of comments in HTML does not have a significant impact on performance.
In pure interpreters parsing strings each time, it does. In compilers and precompiler interpreters, it has no effect.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question