Performance update on GenerateQrCode function by HolyOne · Pull Request #438 · Shane32/QRCoder

@HolyOne

Faster generation of QRCode using StringBuilder

@HolyOne

gfoidl

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The StringBuilder could be used in GenerateQrCode as well, to avoid the string-manipulations (and these allocations).

Co-authored-by: Günther Foidl <gue@korporal.at>
Co-authored-by: Günther Foidl <gue@korporal.at>
Co-authored-by: Günther Foidl <gue@korporal.at>

@codebude

Hi @HolyOne , hi @gfoidl Thanks for your support and pointing me onto this topic. I just re-fined your PR a little bit. I think by setting the capacity we can squeeze out even a little bit more performance. 0c54783

This was referenced

Dec 5, 2025