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?

> 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).

> 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?

> 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>

Reply via email to