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: Dmitry Gutov
Subject: bug#31138: Native json slower than json.el
Date: Mon, 22 Apr 2019 14:48:52 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 21.04.2019 16:33, Philipp Stephani wrote:
Am So., 21. Apr. 2019 um 15:10 Uhr schrieb yyoncho<address@hidden>:
Hi Philipp,

As Eli commented in this thread, the decoding is must have for all external 
libraries no matter what is their contract.
I disagree.

If I simply apply the patch from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31138#5, that breaks tests in test/src/json-tests.el. In particular, json-parse-string/string:

F json-parse-string/string
    (ert-test-failed
     ((should
       (equal
        (json-parse-string "[\"abcαβγ\"]")
        ["abcαβγ"]))
      :form
      (equal
       ["abc\316\261\316\262\316\263"]
       ["abcαβγ"])
      :value nil :explanation
      (array-elt 0
(arrays-of-different-length 9 6 "abc\316\261\316\262\316\263" "abcαβγ" first-mismatch-at 3))))

Would somebody like to propose an alternative patch?





reply via email to

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