<div dir="auto">Can the optimizations be done based on contiguous_range and _iterator? </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 18, 2019, 12:07 Thiago Macieira <<a href="mailto:thiago@macieira.org">thiago@macieira.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Saturday, 17 August 2019 12:25:57 PDT Henri Sivonen wrote:<br>
> To the extent other programming languages that have encoding<br>
> conversion in their standard library, such as Java, focus on<br>
> contiguous buffers rather than iteration, it's worthwhile to study if<br>
> application developers really feel that something important is<br>
> missing.<br>
<br>
We were just discussing URLs in the cpplang Slack and that reminded me: <br>
there's exactly one in 10 years case that I've needed to decode a non-<br>
contiguous byte range and that's when parsing a URL.<br>
<br>
So yes, these cases exist. On the other hand, they are rare enough that you <br>
don't need the the regular API to support them. The URL parser has other needs <br>
too and would be quite satisified to use a very flexible, stateful decoder <br>
API.<br>
<br>
Moreover, decoding contiguous byte ranges have very interesting properties <br>
since they can be parsed by SIMD.<br>
<br>
-- <br>
Thiago Macieira - thiago (AT) <a href="http://macieira.info" rel="noreferrer noreferrer" target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" rel="noreferrer noreferrer" target="_blank">kde.org</a><br>
Software Architect - Intel System Software Products<br>
<br>
<br>
<br>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank" rel="noreferrer">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>