Jump to content
IGNORED

Crunching code. Any tips?


Random Terrain

Recommended Posts

I noticed that you can squeeze out a few extra bytes here and there by putting things on the same line, but that only works for some things. Is there a way to tell what things should be put on the same line and what doesn't help at all (or do you just have to try and find out every time)?

 

My bloated code left me with around 300 bytes free, but now I have 703 after crunching the code the best I know how. I should be able to post the rough draft of my maze-like 'game' today but it would be nice to have it crunched as much as possible first.

Link to comment
Share on other sites

I noticed that you can squeeze out a few extra bytes here and there by putting things on the same line, but that only works for some things. Is there a way to tell what things should be put on the same line and what doesn't help at all (or do you just have to try and find out every time)?

 

My bloated code left me with around 300 bytes free, but now I have 703 after crunching the code the best I know how. I should be able to post the rough draft of my maze-like 'game' today but it would be nice to have it crunched as much as possible first.

939798[/snapback]

I can think of three ways that the generated code may be smaller after packing stuff on a single line, but all of which are technical and not really predictable at the Basic source level. So trial and error is the only way right now.

Link to comment
Share on other sites

I can think of three ways that the generated code may be smaller after packing stuff on a single line, but all of which are technical and not really predictable at the Basic source level.  So trial and error is the only way right now.

939803[/snapback]

Thanks. Unless I skipped something, I think I tried every line that could be combined. Now I'm seeing if there is any more bloated code that I can crunch, but I am running out of ideas on how. Maybe people who are better at programming can help me crunch it more after I post it later today.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...