[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speedup of functions to en/decode UTF-8 text

From: Dmitry Gutov
Subject: Re: Speedup of functions to en/decode UTF-8 text
Date: Sat, 23 Nov 2019 20:42:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 23.11.2019 11:37, Eli Zaretskii wrote:
I've made some changes in the functions that encode and decode UTF-8
text in an optimized fashion.  This is expected to speed up JSON
handling.  Some preliminary benchmarking of the decoding function
indicates speed improvements starting at modest 30-40%, and sometimes
much higher -- tenfold or more.  I'm not sure how this will fare in
the real-life handling of JSON objects

This is great. But were those 30-40% improvements in tests with strings or JSON decoding?

I tested two old examples, and the difference is <10% (like 0.78s down to 0.73s in the best case). Which is still welcome, of course.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]