Thread overview
[Issue 22155] practical range usage often causes unnecessary closure allocations.
Jul 28, 2021
John Colvin
Jul 29, 2021
kinke
Dec 17, 2022
Iain Buclaw
July 28, 2021
https://issues.dlang.org/show_bug.cgi?id=22155

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry, performance

--
July 29, 2021
https://issues.dlang.org/show_bug.cgi?id=22155

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke <kinke@gmx.net> ---
LDC optimizes it away with -O for the 2 given testcases (via the GC2Stack IR pass) - conceptually, it can prove that the closure doesn't escape after inlining *everything*, and moves it back to the stack.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22155

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 01
https://issues.dlang.org/show_bug.cgi?id=22155

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10470

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--