On 15-May-05, at 7:48 AM, Nick Lockwood wrote:
As for DisableBoundsChecking, the last I'd heard was that it had
originally applied only to one-dimensional boolean arrays, and that
even this optimisation had been removed in the RB 5.0 compiler
rewrite. Has this optimisation now been re-implemented for all arrays?
I honestly don't know the details, but something must catch
OutOfBoundsException for all arrays and pseudo-arrays (like
memoryblocks) and turning off BoundsChecking can cause any out of
bounds situation to crash (or at least not work right) so it must be
doing something.
I think REAL are shooting themselves in the foot a little by not
advertising these features more. I got a factor of 10 speed
improvement using them, but they are poorly documented in the help
system.
I agree. Even a short "Performance Tweaking Guide" would go a long
way, as the same issues come up over and over on these NUGs. It would
also be nice to know some more details on how each pragma works. I
tend to slap these pragmas anywhere I'd like a speed up, but I know
some have little or no affect in certain situations - I just don't
know which and why.
Also some check-boxes to enable these features globally for an
application would be handy.
Not sure I'd want to do it globally, but ya, there's got to be a
better way to handle these. Sticking them in almost every method does
get tedious, so maybe a way to do it per-module/class or even just a
combined pragma statement that disables everything in one shot.
Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––
_______________________________________________
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>
|