Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does commented code really affect size of .exe?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01498562
Message ID:
01499298
Views:
54
>Hi,
>
>I wonder if a commented code adds to the size of the .EXE? My guess is that since the commented code increases the size of the .VCT file (of the class library where the code resides) it has to affect the .EXE; that is, it has to increase its size. Does it make sense?

I did a little test. I added a method to one of the classes in a class library. Then I added about 200 lines of text and commented this text. The size of the .VCT file increased by about 20,000 bytes. Then I rebuild the .EXE file. And the size of the .EXE went up about 200 bytes. This is good. So increase of commented code or text does not greatly affect the size of the .EXE.

The reason I asked the question is write a lot of descriptions in my class files (for documentation). I want to keep the descriptions as close to the code as possible (since I will forget where I wrote it <g>). And my concern was that by writing these descriptions I cause the .EXE to grow too much.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform