Thread overview
[Issue 18324] String switch lowering geneartes really long symbol names
Dec 17, 2022
Iain Buclaw
May 11, 2023
RazvanN
January 29, 2018
https://issues.dlang.org/show_bug.cgi?id=18324

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
May 11, 2023
https://issues.dlang.org/show_bug.cgi?id=18324

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
The longest mangled name for a switch that I've found has a 392 length. This happens because the runtime __switch hook has variadic parameters which represents the case strings. Maybe this could be improved by using a compile time generated array of string cases.

--