On May 16, 2007, at 15:38 UTC, Daniel Stenning wrote:

> For example I also did a run as follows:
> 
>  dim u as integer = Count * 4
>    for j as integer = 0 to iterations
>      for i as integer = 0 to u step 4
>         pB.Single(i) = pA.Single(i) * j
>      Next
>    Next

This does iterations*Count total iterations.

> And the RB version that calls C:
> 
>    for i as integer = 0 to Count
>      copySingle ( i, A, B )
>    Next

This isn't the same at all.  You're looking to Count (rather than
iterations) on the outer loop, and only up to i on the inner loop; this
is Count * (Count+1)/2 total iterations.  Depending on the values of
'Count' and 'iterations', this could be a much smaller number.

Your C-using loop should be:

  for j as integer = 0 to iterations
    copySingle( Count, A, B )
  Next

Cheers,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Strout Custom Solutions


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to