Results 1 to 6 of 6

Thread: Comments in code using up memory !! (RESOLVED)

  1. #1

    Thread Starter
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Post 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.
    Give your music collection a whole new life with PartyTime Jukebox

  2. #2

    Thread Starter
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560
    Give your music collection a whole new life with PartyTime Jukebox

  3. #3
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918
    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.

  4. #4
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Comments are already stripped from an executable. The article is about Office VBA. It doesn't apply to Vb, nor to Access mde files.
    Frans

  5. #5
    Lively Member blaff's Avatar
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    69
    You really shocked me for a moment...
    _____
    blaff

  6. #6

    Thread Starter
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560
    lol, guess I should've double checked what section I was in first
    thanks Frans C for confirming that also.
    Give your music collection a whole new life with PartyTime Jukebox

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width