At 1:48 PM -0800 2/15/06, Daniel L. Taylor wrote:

I must confess that I don't understand why certain things are sooo much
faster in C than in RB. C will clobber RB in a simple loop even with all the
Pragmas. The difference is huge!

That's not true, in general. A while back we took a simple but non-contrived Mandlebrot generator, and wrote it in both C and REALbasic using the same algorithm. The RB code was slightly faster than the unoptimized C code, and slightly slower than the C code with optimizations on.

RB's string operations are also, in many cases, faster than what you'd probably have in C for the same functionality, unless you went to a lot of work -- there is a lot of sophisticated code behind them (especially in making them encoding-savvy).

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to