Doxygen

An off-topic general discussion forum to chat about ANYTHING!
Search

Post Reply
3 posts • Page 1 of 1
jcbaar
Posts: 34
Joined: Fri Sep 02, 2011 12:20 pm

Doxygen

Post by jcbaar »

We use doxygen to document much of our shared CTRL/CTRL++ code base. These comments can become pretty verbose. Since CTRL is a interpreted language, is there a performance impact when having many comments and sometimes pretty long ones?

I can imagine that initially loading and parsing the file will have a (small?) performance hit but I was wondering if there is also a "run-time" performance hit.

Regards,
Jan

User avatar
hpuchegger
Posts: 86
Joined: Fri Oct 08, 2021 10:38 am

Re: Doxygen

Post by hpuchegger »

The use of comments in control code is fundamentally no different from other development languages in MHO.
They must be used carefully, but they are not subject to any limitations.

I tested a simple 1000x loop with dpSet without comments (file size 1 KB) and with 10,000,000 characters (file size 10 MB). The only difference was that while the 10 MB script took 7 seconds to initialize, it subsequently executed the code at the same speed.

Br, Herbert

jcbaar
Posts: 34
Joined: Fri Sep 02, 2011 12:20 pm

Re: Doxygen

Post by jcbaar »

I figured as much and I must say that I never noticed any performance issues (without ever benchmarking it) but I was wondering since our doxygen comments are important. Thanks for the reply and the test you ran. I honestly did not think of testing it that way myself.

Regards,
Jan

Post Reply
3 posts • Page 1 of 1