On 16/5/07 20:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> On May 16, 2007, at 17:44 UTC, Frank Condello wrote:
> 
>> Daniel's profiling a loop that uses direct Ptr access - there are no
>> function calls.
> 
> What?  Is Ptr.SingleValue(index) not a function call?

Your thinking of the memoryblock call SingleValue() but I was using
myPtr.Single(index)  - I'd like to know if this uses a function or just
makes the compiler spew out machine code as for the  C equivalent:
> 
>> The report evaluation suggests he wasn't testing in release builds
>> which is why he was seeing such a big discrepancy.
> 
> Ah, we should have asked that right off -- there is indeed a fair
> amount of overhead in debugging support, which will show up in tight
> loops like this one (which we expect to be able to stop, for example,
> even when background tasks are disabled).

Good point. Indeed it was. I'll do the test again in a release build and
report back with the results.
 
> 
>> However the report
>> makes some incorrect assumptions as well - basically this test is
>> flawed. Daniel's code is making a function call in the dylib case and
>> no function calls in the RB case so if all things were equal RB
>> should've been _way_ faster, not just marginally faster.
> 
> Again I wonder why you say .SingleValue isn't a function call.  Have I
> missed something?

 see previous remark...

> 
>> You can gain a lot speed in RB by manually unrolling loops but that's
>> not always appropriate (or pretty). I think we simply need a more
>> reasonable test case to pinpoint the problem areas.
> 
> I'll buy that.
> 
> 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>
> 

Regards,

Dan



_______________________________________________
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