bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#31138: Native json slower than json.el


From: Eli Zaretskii
Subject: bug#31138: Native json slower than json.el
Date: Sun, 21 Apr 2019 13:37:36 +0300

> From: yyoncho <yyoncho@gmail.com>
> Date: Sun, 21 Apr 2019 13:23:28 +0300
> Cc: Dmitry Gutov <dgutov@yandex.ru>, Sébastien Chapuis <sebastien@chapu.is>, 
>       31138@debbugs.gnu.org
> 
> IMO if validation of the data that comes from external libraries is taking a 
> lot of time then it does not make
> sense to use external libraries at all when we are aiming for performance 
> gains.

I don't see how this follows, when this discussion clearly established
that native JSON parsing is much faster than parsing in Lisp.

I also don't see where did "a lot of time" come from, I think it's an
exaggeration, given the processing speed shown by benchmarks in this
discussion.

There's still some peculiar slowdown in your configuration, which
AFAIR couldn't be reproduced from "emacs -Q"; I still hope you will be
able to find what causes that.

As for the more general point: we always decode strings, even in UTF-8
locales, so I don't see how this case is different.





reply via email to

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