|
-
Apr 14th, 2003, 11:23 PM
#1
Thread Starter
Fanatic Member
Comments in code using up memory !! (RESOLVED)
Found this tip on MSDN today and must admit came somewhat as a shock to me, as I never thought this could be an issue.
From MSDN:
Additional Tips for Fast Code:
Consider Stripping Comments from Your Delivered Application
Comments in code use memory. If your application contains many lines of commented code, consider stripping the comments from your code in the delivered application. Before delivering the application, save the code to a text file. Make a copy of the text file and strip out the comments. Then load the stripped code back into your application. Retain the text file that contains the commented code for your reference and future development work.
Unless they mean something else by "Delivered Application" Isn’t that the compiled exe?
I've always left my commented lines in, in all of my my apps before but If this is right then I should remove em all?!
Last edited by daydee; Apr 15th, 2003 at 04:47 PM.
-
Apr 14th, 2003, 11:25 PM
#2
Thread Starter
Fanatic Member
-
Apr 14th, 2003, 11:53 PM
#3
Thanks for the link.
I think that particular article is referring to MS Office development using VBA.
I hope that it doesn't also apply to VB development. I always believed that comments weren't compiled and so used no extra resources.
Bit of a worry though!
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
-
Apr 15th, 2003, 02:53 AM
#4
Comments are already stripped from an executable. The article is about Office VBA. It doesn't apply to Vb, nor to Access mde files.
-
Apr 15th, 2003, 02:58 AM
#5
Lively Member
You really shocked me for a moment...
-
Apr 15th, 2003, 04:46 PM
#6
Thread Starter
Fanatic Member
lol, guess I should've double checked what section I was in first
thanks Frans C for confirming that also.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|