From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: JSON encoding and decoding performance
Date: Thu, 20 Apr 2017 10:50:20 +0000
Message-ID:
References: <9b65fbad-154f-4a7d-1d1f-9d6e68d71455@mit.edu>
<837f2mgky9.fsf@gnu.org>
<355a6be5-ab8a-6788-04bc-81fe2f9c8285@mit.edu> <87pogc1dvs.fsf@holos>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=f403045eade2d8a8fb054d96e84c
X-Trace: blaine.gmane.org 1492685444 21309 195.159.176.226 (20 Apr 2017 10:50:44 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 20 Apr 2017 10:50:44 +0000 (UTC)
Cc: Eli Zaretskii , emacs-devel@gnu.org
To: Mark Oteiza ,
=?UTF-8?B?Q2zDqW1lbnQgUGl0LS1DbGF1ZGVs?=
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 20 12:50:40 2017
Return-path:
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1d19fa-0005PF-Rn
for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2017 12:50:38 +0200
Original-Received: from localhost ([::1]:52902 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1d19fg-0000Tt-JC
for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2017 06:50:44 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47078)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1d19fZ-0000SU-Tc
for emacs-devel@gnu.org; Thu, 20 Apr 2017 06:50:39 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1d19fY-0005fa-SF
for emacs-devel@gnu.org; Thu, 20 Apr 2017 06:50:37 -0400
Original-Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:36370)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1d19fX-0005cs-0Y; Thu, 20 Apr 2017 06:50:35 -0400
Original-Received: by mail-wr0-x22b.google.com with SMTP id c55so32878751wrc.3;
Thu, 20 Apr 2017 03:50:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=e9FWWrVnX/Z6UFbf9AQU2EdoCfVbLv2tzq5LhnrfxUw=;
b=RlUNjZ8O/yacV/vj4BHeArDLNWjE9LrbWYhA7pvUjup3dCP/MdXVutlvhmILb++p7E
hQXXTNU6qjtnjRn7w4PjR1AOsgz6L/alV+oVqerRRCcJ4aTnNCfL3wzo4zZFd8DStbcc
OjYIAeB+J3LM1+Tv56Th1LyYLjS7/OgnJ+t0D1E2BB7NxL1PY5ZjPvIlAm8kZBCwQ1Az
lGHeP71/xhpeA0INMC22mdsh6ImsU6gO24RwdP3XAihE5lWFC1SG5MpdjRHMzmiS9jaM
RqJEUvr8/tQMMKF9lAWadGSPnKl/5fHBEEPkC2KtmQjI9OoTKTMOKOOjuesw0/bs0iLy
yLQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=e9FWWrVnX/Z6UFbf9AQU2EdoCfVbLv2tzq5LhnrfxUw=;
b=CGbvy/ig3grGptdwNZ0CEpoJ0E7X7bVNJa6AcmYj8uAlKCuIRUwFsv3N5zBUA5ZFzT
fxrHHoj6dCG7iZ/yAZpuyu8oppk4KmtAhKZ+tsOuPncWaMrS8wYbUJssvH5YVXTs/E8e
JkRE5BqaFkMDPeLQpCZaEF1+jy60fRsY1MCtXglzL4a74qutyUXvmgR+yauaCRhcq1PG
Vewa7xqNH2HBi19lXSJgDNJXbA5kfYBA1Dye3BSgL/HWCf6wOILzZuPxG0AvjlRDTq+O
XvWyMdLjtZ3aqb5E9ofRAUSb3U7mQa3V6HKJ8Tuu5RQUgWXcNXF9QR5bpC4pQYB5f4J2
I98w==
X-Gm-Message-State: AN3rC/7L8FYu1UKRMHfrPgBX0WVpz0zS7QT79sNgO6AeJSvwuqQSdusZ
J7+ZRfNaIqcVX8+6/rH6CNDPBXOzmg==
X-Received: by 10.223.139.146 with SMTP id o18mr6755666wra.175.1492685430497;
Thu, 20 Apr 2017 03:50:30 -0700 (PDT)
In-Reply-To: <87pogc1dvs.fsf@holos>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2a00:1450:400c:c0c::22b
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.org gmane.emacs.devel:214145
Archived-At:
--f403045eade2d8a8fb054d96e84c
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Mark Oteiza schrieb am So., 16. Apr. 2017 um 19:06 Uhr:
>
> Cl=C3=A9ment Pit--Claudel writes:
> >>> Would there be strong objections to supporting a C JSON library in
> >>> addition to the current ELisp implementation? This was suggested
> >>> at one point in
> >>> https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-03/msg00770.htm=
l
> >>> . It would be similar in spirit to supporting libxml-parse-region
> >>> along xml-parse-region, and it could provide nice speed boosts to
> >>> json-heavy ELisp programs.
> >>
> >> Since we have modules now, something that wasn't available back
> >> then, you could roll your own library, right?
> >
> > That's right! I forgot about these. Let me try :)
>
> Here's one: https://github.com/syohex/emacs-parson
Thanks. I think the performance gain measured for that is quite convincing.
--f403045eade2d8a8fb054d96e84c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cl=C3=A9ment Pit--Claudel <cpitcla@mit.edu> writes:
>>> Would there be strong objections to supporting a C JSON librar=
y in
>>> addition to the current ELisp implementation?=C2=A0 This was s=
uggested
>>> at one point in
>>> https://lists.gnu=
.org/archive/html/bug-gnu-emacs/2015-03/msg00770.html
>>> .=C2=A0 It would be similar in spirit to supporting libxml-par=
se-region
>>> along xml-parse-region, and it could provide nice speed boosts=
to
>>> json-heavy ELisp programs.
>>
>> Since we have modules now, something that wasn't available bac=
k
>> then, you could roll your own library, right?
>
> That's right! I forgot about these. Let me try :)
Here's one: https://github.com/syohex/emacs-parson
Thanks. I think the performance gain measured =
for that is quite convincing.
--f403045eade2d8a8fb054d96e84c--