https://bugs.winehq.org/show_bug.cgi?id=56867
--- Comment #5 from cqwrteur euloanty@live.com --- (In reply to cqwrteur from comment #4)
dynamic cast is here
https://github.com/trcrsired/fast_io/blob/ 742950421eedc149585122059cd8196545e28dac/include/fast_io_legacy_impl/filebuf/ fp_hack/msvc_stl.h#L84
Wine source shows it does strcmp which is slow. Microsoft has changed the implementation to not be strcmp-ed. Though i do not know how they've done it.
https://github.com/wine-mirror/wine/blob/ f9af971bd7d6799d54436ba9f7fa327b7edfbc77/dlls/msvcrt/cpp.c#L819
https://youtu.be/ARYP83yNAWk?si=D0GjCDbYwLeEXW_1&t=4473
Herb Sutter (Microsoft VC Team Lead) said, "We know Microsoft did string comparison; we are fixing that."