|
-
Jul 29th, 2010, 03:19 PM
#1
Thread Starter
Lively Member
-
Jul 29th, 2010, 03:24 PM
#2
Re: Take Advantage of 64bit processor?
It wont make your app faster unless your app needs to use massive amounts of memory (e.g over 2 GB).
Anyway, all you need to do to make your app 64 bit compatible is set the Target CPU Architecture to AnyCPU (or x64 if you want it to ONLY run on 64 bit operating systems). To do this just go to your Project Properties and click the Compile tab, then click the Advanced Compile Options button - in the new window that appears you will see Target CPU, just make sure that is set to AnyCPU.
-
Jul 29th, 2010, 03:25 PM
#3
Re: Take Advantage of 64bit processor?
In general: 64bit <> Speed
-
Jul 30th, 2010, 02:22 AM
#4
Re: Take Advantage of 64bit processor?
If you want to make your app faster then what you want to take advantage of is the fact that most modern CPUs are multi-core, not the fact that they're 64-bit. If your app runs multiple threads simultaneously then it can get a speed boost.
One problem is determining where multi-threading will help. Over-use can actually make your app slower and most apps will not need more than one thing done at a time for most, or even all, of the time.
The other problem is the complexity associated with multi-threading. Running multiple threads simultaneously makes introducing bugs easier and makes finding and fixing them harder. Some options for implementing multi-threading simply include the BackgroundWorker class, PLINQ and the members of the System.Threading.Tasks namespace.
-
Jul 30th, 2010, 03:11 AM
#5
Re: Take Advantage of 64bit processor?
In addition to the points raised above, in most cases the speed of an app can be improved (sometimes very dramatically) without looking for something outside of the existing code to help - but by optimising the code you have already got.
Optimising code is about finding out which parts of the code are noticeably slow (and/or use too much memory), then working out how to achieve the same thing in a more efficient way. What improvements you can make depend on the circumstances, but include things like using a different function to get equivalent info, pre-calculating a value before a loop rather than inside it, and even re-designing the methodology of the routine.
Just because code produces the right result, it doesn't mean that there aren't aspects of it that are less than ideal, and make it take extra time to run.
-
Jul 30th, 2010, 03:30 AM
#6
Re: Take Advantage of 64bit processor?
See which part of your code is slow and then try to determine which particular operation is taking time.
Check your loops - maybe some unnecessary work which is only required to run once is performed within a loop, etc. Try to minimize I/O operations, cache your frequently used data in local variables, etc. Operations with strings are the slowest - try to minimize them and store intermediate results in variables. Do not perform the same operation twice. You have 4Gb of virtual memory at your disposal - do not be afraid to declare an additional variable (outside loops if possible). There are usually hundreds of things that can be improved/optimized.
Tags for this Thread
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
|