Re: Optimizing CPU usage
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
On Thu, 18 Jan 2007 13:42:31 -0500, "Jack" <replyto@it> wrote something
that piqued my interest enough to reply with:
Which one will be better:
create an array of BYTES or of INTEGERS
for the purpose of finding the average value of the array?
There are between 50 000 to 100 000 elements of array and I am looking for
the fastest execution.
Your sort method is more likely to have a large impact on CPU
usage/speed than the data type, although I believe Longs are considered
the 'fastest' datatype in 32 bit VB.
--
Alfie
<
http://www.delphia.co.uk/>
I Have a Degree in Liberal Arts - Do You Want Fries With That?
.
Relevant Pages
- str_replace vs. preg_replace speed
... I will run some benchmarks (even though they may be flaky), ... be the fastest execution? ... $search = array( ... (php.general) - Re: Optimizing CPU usage
... create an array of BYTES or of INTEGERS ... for the purpose of finding the average value of the array? ... the fastest execution. ... You could benchmark it for yourself. ... (microsoft.public.vb.general.discussion) - Re: sxhash and object identity
... > actually return a new array rather than succeeding at expanding the ... > I'm using (sxhash array) for such a purpose, ... isn't the same as object identity given the possibility for objects to ... (comp.lang.lisp) - (part 45) Han from China answers your C questions
... instance of an object of type T can be thought of as an array of one ... For the purpose of address arithmetics - yes, ... Ah, but dear Tarasevich, that is why I put the emphasis on ... "For the purposes of these operators, a pointer to an object ... (comp.lang.c) - (part 45) Han from China answers your C questions
... instance of an object of type T can be thought of as an array of one ... For the purpose of address arithmetics - yes, ... Ah, but dear Tarasevich, that is why I put the emphasis on ... "For the purposes of these operators, a pointer to an object ... (comp.lang.c) |
|