Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eventsub): use custom String type #5968

Merged
merged 3 commits into from
Feb 22, 2025

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Feb 21, 2025

This implements the type I sketched in #5921. It's either a QString, an allocated char[], or an in-place char[]. I documented the class a bit to explain how it works. The benchmark runs equally fast.

For Windows debuggers, there's also a natvis visualizer. I don't know how GDB ones work, but that might be doable as well (i.e. putting them in the debug info/a special section).

I previously added ASAN to the Windows CI. We could do that in a followup PR.

This might be the first change that will require Qt 6, because it uses QAnyStringView.

Closes #5921.

@pajlada pajlada merged commit 10ac88e into Chatterino:master Feb 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants