Timing too good to be true

David Nadlinger code at klickverbot.at
Sun Sep 22 04:45:21 PDT 2013


On Sun, Sep 22, 2013 at 6:48 AM, Paul Jurczak <pauljurczak at yahoo.com> wrote:
> OK, you've wrote "optimizer constant-folds the entire e28 functions away",
> which means compile time. Very clever optimizer! To defeat this behavior I
> changed timing loop to:

By the way, there is an LDC-specific pragma to selectively disable
inlining for some functions that you could have used to the same
effect: http://wiki.dlang.org/LDC-specific_language_changes#LDC_never_inline.

David


More information about the digitalmars-d-ldc mailing list