[m-rev.] for review: fix half of Mantis bug #548

Zoltan Somogyi zoltan.somogyi at runbox.com
Thu Feb 10 10:48:14 AEDT 2022


2022-02-10 10:22 GMT+11:00 "Zoltan Somogyi" <zoltan.somogyi at runbox.com>:
> I can see four ways to fix the second problem in Mantis 548.

There is of course a fifth approach: don't use a tag switch if it requires
duplicating any block containing local variables, whether that duplicating
is done by reusing MLDS code or generating it from scratch each time,
and instead fall back to implementing the switch as an if-then-else chain.
This would have a significant impact on the performance of the affected code.
The impact it would have on the speed of the program as a whole
depends on what fraction of the runtime is spent in affected code.

Zoltan.


More information about the reviews mailing list