|
-
Aug 18th, 2005, 04:57 AM
#1
Thread Starter
Addicted Member
General Info on Optimization
have this Sub that will test a particular Condition every time even though it will always be the Same.
There are around 4 Subs that Exist + 2 Other Completly Different onces.
I thought of Testing the particulat condition once, then go to the Sub relevant, which then has no test.
if the Condition is False(above) then do something else, which makes means I duplicate the first Sub's Else Condition. Therefore 8 Subs will now exist(4x2) + the Other non Related onces.
Here's What I thought:
If I test each time in the sub for each Parameter, it will still be faster as having 8 Subs + 2 means the Program is Larger, taking up more space in Memory as Windows usually Loads the Entire App into memory?
Whats your opinion?
I Noticed just making a App with No Functionality runs At 11 MB in Memory!!
Curiosity SKILLED the cat
Google Talk from your Mobile phone
Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2
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
|