From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: JSON/YAML/TOML/etc. parsing performance Date: Sun, 17 Sep 2017 22:05:38 +0300 Message-ID: <83vakhi1rx.fsf@gnu.org> References: <87poaqhc63.fsf@lifelogs.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505675230 3399 195.159.176.226 (17 Sep 2017 19:07:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Sep 2017 19:07:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 17 21:07:04 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 1dteuF-0000gp-Li for ged-emacs-devel@m.gmane.org; Sun, 17 Sep 2017 21:07:03 +0200 Original-Received: from localhost ([::1]:33385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dteuM-0001oD-U9 for ged-emacs-devel@m.gmane.org; Sun, 17 Sep 2017 15:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtesz-0001MU-E5 for emacs-devel@gnu.org; Sun, 17 Sep 2017 15:05:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtesv-0005Wp-BA for emacs-devel@gnu.org; Sun, 17 Sep 2017 15:05:45 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtesv-0005Wh-4k; Sun, 17 Sep 2017 15:05:41 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3864 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dtess-00067a-Qi; Sun, 17 Sep 2017 15:05:41 -0400 In-reply-to: (message from Philipp Stephani on Sun, 17 Sep 2017 18:46:45 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:218423 Archived-At: > From: Philipp Stephani > Date: Sun, 17 Sep 2017 18:46:45 +0000 > > I don't know much about the others, but given the importance of JSON as data exchange and serialization > format, I think it's worthwhile to invest some time here. I've implemented a wrapper around the json-c library > (license: Expat/X11/MIT), resulting in significant speedups using the test data from > https://github.com/miloyip/nativejson-benchmark: a factor of 3.9 to 6.4 for parsing, and a factor of 27 to 67 for > serializing. If people agree that this is useful I can send a patch. Before we make a decision on which library to use, I'd prefer some kind of survey of available free software libraries, including their popularity and development activity. The survey doesn't have to be exhaustive, but I think we should compare at least a few candidates. We already have 2, so maybe we should start by comparing them. Thanks.