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
Doxygen
Search
- hpuchegger
- Posts: 86
- Joined: Fri Oct 08, 2021 10:38 am
Re: Doxygen
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
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
Re: Doxygen
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
Regards,
Jan