R
R
Roman Grigoriev2015-07-13 12:11:38
JavaScript
Roman Grigoriev, 2015-07-13 12:11:38

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

3 answer(s)
E
Evgeny Petrov, 2015-07-13
@rameer666

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.

R
Rsa97, 2015-07-13
@Rsa97

In pure interpreters parsing strings each time, it does. In compilers and precompiler interpreters, it has no effect.

D
Denis Ineshin, 2015-07-13
@IonDen

No.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question