emacs-devel
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: Re: Speedup of functions to en/decode UTF-8 text
Date: Sat, 23 Nov 2019 20:49:46 +0200

> Cc: address@hidden
> From: Dmitry Gutov <address@hidden>
> Date: Sat, 23 Nov 2019 20:42:09 +0200
> 
> 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?

With JSON decoding.  But I have a very small sample of that.

> 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.

As long as it's faster, I'm okay ;-)

Thanks for testing.



reply via email to

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