[Issue 10820] curly brakets prevent inlining with DMD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 11 04:08:01 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10820



--- Comment #4 from monarchdodra at gmail.com 2013-10-11 04:07:58 PDT ---
(In reply to comment #2)
> https://github.com/D-Programming-Language/dmd/pull/2654
> 
> With patched dmd, the OP code output is:
> 
> $ dmd -run test.d
> DMD v2.064 DEBUG
> foo1: 426ms.
> foo2: 454ms.
> foo3: 391ms.
> foo4: 401ms.
> 
> $ dmd -O -inline -run test.d
> DMD v2.064 DEBUG
> foo1: 67ms.
> foo2: 35ms.
> foo3: 35ms.
> foo4: 33ms.

Most awesome!

I will stress test your pull with variations of my above code, and see what I
can report.

Thank you very much.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list