Re: Encode UTF-8 optimizations

2016-08-20 Thread Karl Williamson
On 08/20/2016 08:33 PM, Aristotle Pagaltzis wrote: * Karl Williamson [2016-08-21 03:12]: That should be done anyway to make sure we've got less buggy Unicode handling code available to older modules. I think you meant “available to older perls”? Yes, thanks

Re: Encode UTF-8 optimizations

2016-08-20 Thread Aristotle Pagaltzis
* Karl Williamson [2016-08-21 03:12]: > That should be done anyway to make sure we've got less buggy Unicode > handling code available to older modules. I think you meant “available to older perls”?

Re: Encode UTF-8 optimizations

2016-08-20 Thread Karl Williamson
Top posting. Attached is my alternative patch. It effectively uses a different algorithm to avoid decoding the input into code points, and to copy all spans of valid input at once, instead of character at a time. And it uses only currently available functions. Any of these that are