Why would RS do it this way when #pragmas for bounds checking is off?
So are RB arrays faster than memoryblocks? I thought memoryblocks
were the fastest thing in RB. Learning how much faster a simple array
in C compared to a basic (harder-to-use) memoryblock is not
encouraging...
Are RB arrays using methods to get the data as well? They must be special tables. myarray[offset] is simply pointer lookup. All accessors on memoryblocks are methods; they perform bounds and endian checks. While bounds checking is nice (you can't shoot yourself in the foot by writing into someone else's memory), the function overhead and all the checks that are performed make it slow.Proportionally, the function overhead and the checks are much more work than actually reading or writing the data. _______________________________________________ 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> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Game engine test, Asher Dunn |
|---|---|
| Next by Date: | Re: Game engine test, Asher Dunn |
| Previous by Thread: | Re: Game engine test, Asher Dunn |
| Next by Thread: | Re: Game engine test, Asher Dunn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |