[Issue 12550] Deprecate -noboundscheck and replace with more useful -boundscheck= option

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 10 11:25:09 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12550

Benjamin Thaut <code at benjamin-thaut.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at benjamin-thaut.de

--- Comment #9 from Benjamin Thaut <code at benjamin-thaut.de> ---
Please consider that you will scare of useres that care for maximum performance
(gaming, embended) if a noboundscheck does not turn off all bounds checks. If
you really care about performance you will always be wondering how much time
you loose from boundschecks in safe code, especially on mobile platforms
branches can be very expensive. Additinally you should not take the "tight loop
optimization" idiom to seriously. Modern optimized code bases often have a
"general slowness" problem. Nothing is really the hot spot, and almost all code
just runs to slow.

--


More information about the Digitalmars-d-bugs mailing list