Thread overview
[Issue 18221] DMD64 2.078.0 compile time explodes with -inline for mir-algorithm
Mar 08, 2018
Timothee Cour
[Issue 18221] DMD64 2.078.0 compile time explodes with -inline for mir-algorithm (>4X)
Mar 08, 2018
Timothee Cour
[Issue 18221] DMD64 2.078.0 compile time explodes with -inline (>4X)
Apr 09, 2021
Iain Buclaw
Apr 20, 2021
Walter Bright
February 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18221

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilyayaroshenko@gmail.com
           Hardware|x86                         |All

--
March 08, 2018
https://issues.dlang.org/show_bug.cgi?id=18221

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com

--- Comment #1 from Timothee Cour <timothee.cour2@gmail.com> ---
ping.

from previous posts above the OP it seems it gets a factor 4X slower.

here's the OP to make it easier:
```
On Wednesday, 10 January 2018 at 21:32:55 UTC, Nathan S. wrote:
> On my mac laptop running DMD 2.078.0, building and running the mir-algorithm unittests takes 8 seconds normally but takes ~3 minutes 49 seconds with dub options "releaseMode", "optimize", "inline", "noBoundsCheck".

When I remove the "inline" option the build + test time becomes <10 seconds. So
the weirdly slow part is related to inlining.
```

and:

```
DMD 2.077.1 for linux32: 3 min 20 sec
DMD 2.077.1 for linux64: 3 min 16 sec
DMD 2.077.1 for mac64: 5 min 4 sec

DMD 2.078.0-rc.1 for linux32: 13 min 30 sec
DMD 2.078.0-rc.1 for linux64: 9 min 39 sec
DMD 2.078.0-rc.1 for mac64: 10 min 56 sec, then the job was aborted
```

--
March 08, 2018
https://issues.dlang.org/show_bug.cgi?id=18221

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD64 2.078.0 compile time  |DMD64 2.078.0 compile time
                   |explodes with -inline for   |explodes with -inline for
                   |mir-algorithm               |mir-algorithm (>4X)

--
March 08, 2018
https://issues.dlang.org/show_bug.cgi?id=18221

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD64 2.078.0 compile time  |DMD64 2.078.0 compile time
                   |explodes with -inline for   |explodes with -inline (>4X)
                   |mir-algorithm (>4X)         |

--
March 08, 2018
https://issues.dlang.org/show_bug.cgi?id=18221

--- Comment #2 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
Mir Algorithm tests are a huge chunk of a super generic code. The same problem exists for a ultra Phobos-idiomatic code based on std.range and std.algorithm.

--
March 08, 2018
https://issues.dlang.org/show_bug.cgi?id=18221

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance

--
August 05, 2020
https://issues.dlang.org/show_bug.cgi?id=18221

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |21121


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=21121
[Issue 21121] Optimizer slowdowns
--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=18221

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
                 CC|                            |ibuclaw@gdcproject.org

--
April 20, 2021
https://issues.dlang.org/show_bug.cgi?id=18221

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=21121

--