Skip to content

Allow one layer of unbalanced if to be inlined - #23816

Open
limepoutine wants to merge 1 commit into
dlang:masterfrom
limepoutine:inliner-branch
Open

Allow one layer of unbalanced if to be inlined#23816
limepoutine wants to merge 1 commit into
dlang:masterfrom
limepoutine:inliner-branch

Conversation

@limepoutine

Copy link
Copy Markdown
Contributor

This now gives small performance benefits with std.random unittests (dmd -inline -main -O -unittest -version=StdUnittest random.d).

Benchmark 1: ./random_master
  Time (mean ± σ):     451.5 ms ±   5.1 ms    [User: 450.3 ms, System: 3.1 ms]
  Range (min … max):   443.7 ms … 465.3 ms    20 runs

Benchmark 2: ./random_pr
  Time (mean ± σ):     444.1 ms ±   4.1 ms    [User: 442.9 ms, System: 3.1 ms]
  Range (min … max):   438.6 ms … 455.5 ms    20 runs
 
Summary
  ./random_pr ran
    1.02 ± 0.01 times faster than ./random_master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant