Hi Mars, since you are there, could you possibly shed some light on the
original question concerning arrays? :
1) If I have a dimensioned array :
dim myFixedArray(123) as UInt32
and NEVER anywhere in my project do I use "dynamic" commands on it,such as
Append, Remove, Redim etc ..
Does RB recognise this - and store and treat the array internally as a
contiguous block of UInts in the same manner as C ? Or is each element
handled by a reference or some indirect addressing scheme ?, thereby adding
an extra layer of code execution?
If I then use array indexing to access any element
eg:
for I as integer = 0 to 123
myIntVar = myArray(i)
Next
Does this internally simply use C style index offset addressing to access
the elements ( plus bounds checking of course if enabled ) or are there
extra stages
On 14/9/06 21:29, "Mars Saxman" <[EMAIL PROTECTED]> wrote:
>
> On Sep 14, 2006, at 12:49 PM, Frank Condello wrote:
>
>> When you need speed it looks more like:
>>
>> m.Pointer( m.kStride * 3 ) = 1.0 // No function calls!
>>
>> Not pretty, but it's much faster (though sadly still not as fast as
>> C code)
>
> I'll bet it's about as fast as C code would be if you compiled it
> with a non-optimizing compiler.
>
> Mars Saxman
> REAL Software
>
>
> _______________________________________________
> 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>
>
_______________________________________________
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>