Advertisement

05.17.2008 at 12:33AM PDT, ID: 23410343
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Small executable vs less memory utilization

Tags: Microsoft, Visual Basic, 2008
Pseudo code:
For i = 1 To Len("testing") '1 instance of "testing"
 MsgBox(Strings.GetChar("testing", i)) '2nd instance "testing"
Next

Question(s):
Let's say that instead of "testing" we use a 2000 page book.  Our executable would be decently large, mainly in part to the redundancy of the code.  Consider: If the variable were dimmed, that would effectively cut the size of the executable in half.  The repercussion is a 2000 page book would then be stored in memory (I'm guessing).

So I ask the following:
1. A)  Is "testing" stored in memory anyway?
Here's what I think might happen:  Yes, it is stored, but it is disposed immediately after use.
1. B)  The 2000 page book would be stored, then deleted, then stored again if it were not dimmed, right?

2. A) If it is not stored in memory and, instead, used only as needed by the processor; which would be faster code; dimming or not dimming (the processor is quicker than memory referencing, right?)?
2. B) If it goes directly from code to the processor when it's undimmed then it seems faster to not dim certain variables.  Is dimming, then, only for the sake of preserving hard drive space?

Now I know dimming is better for calculations when referencing a result repeatedly (i.e. x = 1+1 is less processor intensive than 1+1 every time you need it).  It's a lot easier to reference an address for a value than to have the CPU perform complex functions repeatedly.  However, in a specific scenario such as this, which is better AND how does it actually work?
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: psyfect
Solution Provided By: purplepomegranite
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
05.17.2008 at 05:20AM PDT, ID: 21588931

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 03:28PM PDT, ID: 21590939

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 06:38PM PDT, ID: 21591287

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 07:39PM PDT, ID: 21591441

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 07:49PM PDT, ID: 21591460

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.18.2008 at 03:45AM PDT, ID: 21592220

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.18.2008 at 10:49PM PDT, ID: 21595429

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628