On 2019-07-12 17:27, Matthew Woehlke wrote:
On 11/07/2019 15.01, Thiago Macieira wrote:
[...]
Except that the whole point of those methods is that they can be more
efficient when the encoding is known and therefore templating won't help.

So those cases can employ specializations. Or, perhaps better, wrap the
implementation bits where it matters in `if constexpr`.

You should, maybe, take a look at qstring.cpp before you make such uninformed statements.

When you do, keep in mind that these 12k5loc do not even contain direct (as in zerocopy) utf-8/l1 and utf-8/utf16 comparisons, yet. Optimizing those is what earns you a slot at CppCon. Well, not anymore, that ship has sailed.

Thanks,
Marc
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to