#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    421
    Rep Power
    12

    compressing code?


    I am far off this point, but lets say you wanted to make a huge application. Is it worth it to cut out any black rows and get as many things on one line as possible? I know it will be tough to read the code, but it can subtract sometimes more then 10% off the programs size. I made a simple 100KB program and i noticed a tiny little pause (hardly noticeable unless looking for it). I then took out all the empty rows in my code and arranged a few lines that could be fit on one line(instead of two or three). My program was then 70KB and I noticed no pause. What's everybodies insite on this? Am I just being a stupid newb? Thanks in advance.

    -andy
    hmmm...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    Inside the GNU/Hurd kernel
    Posts
    492
    Rep Power
    13
    When compiling all the useless whitespace and comments are removed,so it doesnt affect the size of the binary.
    Did you check the size of the binaries or of the source code file?
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    421
    Rep Power
    12
    source code file. Thank you.

    -andy
    hmmm...

IMN logo majestic logo threadwatch logo seochat tools logo