https://issues.dlang.org/show_bug.cgi?id=23676

Basile-z <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Basile-z <[email protected]> ---
The `static foreach` is not great (btw  you can drop `static`) but the real
culprit is the access to the struct member `_index` from the nested functions.
That would be a problem of counter performance caused by the creation of
closures.

kcachegrind shows that the costy thing would be a cycle between
`FuncDeclaration.needsClosure` and checkEscapingSiblings.

--

Reply via email to