Suggestions-and-Issues icon indicating copy to clipboard operation
Suggestions-and-Issues copied to clipboard

[Bug]: [ALPHA] String interpolation causes significant slowdown

Open altrag opened this issue 1 year ago • 0 comments

Discord Thread

https://discord.com/channels/828292123936948244/1309106428467871764

What happened?

After seeing ⁠beginner-questions⁠, I realized this is not just a me problem so I dug into it and discovered that the problem is entirely with the following line from test.si:

set_description_text(`What is {a} shifted left by {b}?`)

Running normally I get ~12kHz. Replacing the backticks with normal quotes (killing the string interpolation) brings me up to ~80kHz. Commenting out the line entirely runs ~12MHz. (Tested all scenarios with the win condition also commented out as it completes too fast to measure otherwise!)

Version

0.1225 Beta

What OSes are you seeing the problem on?

Windows

Relevant debug.log output, search next to the exectuable

No response

altrag avatar Nov 21 '24 10:11 altrag