Hi Guys
I am currently working on a project and it is constantly being updated, when
I change code I normall comment out the old line(s) and then retype my new
code, just incase I need to revert back, I normally clear this down when
finished but sometimes it gets left in, I was just wondering if comments in
code slow down the performance of the program. Or if the compiler leaves
these out.
Mike. 5 1133
Hi,
The comments are not compiled.
Ken
---------------------
"Michael Turner" <fi*****@m-turner.co.uk> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi Guys
I am currently working on a project and it is constantly being updated, when
I change code I normall comment out the old line(s) and then retype my new
code, just incase I need to revert back, I normally clear this down when
finished but sometimes it gets left in, I was just wondering if comments in
code slow down the performance of the program. Or if the compiler leaves
these out.
Mike.
Thought so I just wanted to check!
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ej**************@TK2MSFTNGP09.phx.gbl... Hi,
The comments are not compiled.
Ken --------------------- "Michael Turner" <fi*****@m-turner.co.uk> wrote in message news:%2******************@TK2MSFTNGP10.phx.gbl... Hi Guys
I am currently working on a project and it is constantly being updated,
when I change code I normall comment out the old line(s) and then retype my new code, just incase I need to revert back, I normally clear this down when finished but sometimes it gets left in, I was just wondering if comments
in code slow down the performance of the program. Or if the compiler leaves these out.
Mike.
Michael,
It does nothing with your code however it let me think on a program I once
had to maintanance in far past what was 10cm thick of pages and that was
full with comments and partially with comments deleted code as you said.
It was unreadable, when I was ready (I just made it new) there where (as far
as I remember me) basicly 4 pages left.
Because the unreadability there where a lot of functions which where double
done and a lot of functions where active however the results were never
used. The new program was 4 times faster and that were no milliseconds in
that time.
Just to give you an idea
Cor
In addition to Cor's suggestions, you may wish to look into a number of
tools such as:
Visual Source Safe or WinCVS for version control
Ndoc and VBcommenter for code documentation
All are either a google away or can be found on sourcforge.com or
gotdotnet.com and they will go a long way to cutting through the
obsfurcation.
"Michael Turner" <fi*****@m-turner.co.uk> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl... Hi Guys
I am currently working on a project and it is constantly being updated, when I change code I normall comment out the old line(s) and then retype my new code, just incase I need to revert back, I normally clear this down when finished but sometimes it gets left in, I was just wondering if comments in code slow down the performance of the program. Or if the compiler leaves these out.
Mike.
"Michael Turner" <fi*****@m-turner.co.uk> schrieb: I am currently working on a project and it is constantly being updated, when I change code I normall comment out the old line(s) and then retype my new code, just incase I need to revert back, I normally clear this down when finished but sometimes it gets left in, I was just wondering if comments in code slow down the performance of the program. Or if the compiler leaves these out.
The compiler leaves them out and they thus don't slow down the runtime
performance of your application. Nevertheless, compilation time may be
higher if there are loads of comments spread over the code.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sims |
last post by:
Hi,
I proud myself in having good comments, (/**/, // etc...), all over my
scripts as well as a very descriptive section at the beginning of the
script.
No correct me if i am wrong but php must...
|
by: Uwe Ziegenhagen |
last post by:
Hello,
my fellows and me implement a c++ tool that is able to divide blank/tab
separated files into <number>, <text>, <c-singlelinecomment> and
<multilinecomment>. So far it's not working bad,...
|
by: Benjamin Niemann |
last post by:
Hello,
I've been just investigating IE conditional comments - hiding things from
non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide
code from IE/Win browsers.
I found...
|
by: Edward Elliott |
last post by:
At the risk of flogging a dead horse, I'm wondering why Python doesn't have
any multiline comments. One can abuse triple-quotes for that purpose, but
that's obviously not what it's for and doesn't...
|
by: Bob Stearns |
last post by:
Several weeks ago I asked what comments I could pass to DB2 in a SELECT
statement. I don't remember whether I said via PHP/ODBC. I was assured
that both /* */ style comment blocks and -- comment...
|
by: Michael |
last post by:
Hi,
I'm having difficulty finding any previous discussion on this -- I
keep finding people either having problems calling os.exec(lepev), or
with using python's exec statement. Neither of...
|
by: tjb |
last post by:
I often see code like this:
/// <summary>
/// Removes a node.
/// </summary>
/// <param name="node">The node to remove.</param>
public void RemoveNode(Node node) {
<...>
}
|
by: jacob navia |
last post by:
Recently we had poor Mr "teapot" that was horrified at the heresy
of lcc-win of accepting // comments.
C is a nice language, and you can do anything with it, inclusive a
program that transforms...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |