From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: JSON/YAML/TOML/etc. parsing performance Date: Mon, 18 Sep 2017 09:46:06 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87d16oglwh.fsf@lifelogs.com> References: <87poaqhc63.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505742423 28859 195.159.176.226 (18 Sep 2017 13:47:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Sep 2017 13:47:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 18 15:46:56 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 1dtwNz-00079V-3g for ged-emacs-devel@m.gmane.org; Mon, 18 Sep 2017 15:46:55 +0200 Original-Received: from localhost ([::1]:36717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtwO6-0003TN-JG for ged-emacs-devel@m.gmane.org; Mon, 18 Sep 2017 09:47:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtwNW-0003T9-9i for emacs-devel@gnu.org; Mon, 18 Sep 2017 09:46:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtwNR-0002Ww-Jw for emacs-devel@gnu.org; Mon, 18 Sep 2017 09:46:26 -0400 Original-Received: from [195.159.176.226] (port=56547 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtwNR-0002WS-CB for emacs-devel@gnu.org; Mon, 18 Sep 2017 09:46:21 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dtwNG-0005PY-2r for emacs-devel@gnu.org; Mon, 18 Sep 2017 15:46:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:LhfwdfzN2HcYxZ3OGNwMazwfzcM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:218457 Archived-At: On Sat, 16 Sep 2017 20:02:17 -0400 Richard Stallman wrote: > Ted wrote: >> I wanted to ask if there's any chance of improving the parsing >> performance of JSON, YAML, TOML, and similar data formats. It's pretty >> poor today. RS> Can you design a primitive general enough to speed up parsing of all those RS> formats? That would make it feasible to handle them all without RS> too much work. I don't think that's easy. They are pretty different. Maybe TOML and INI parsing can be unified, but that's about it. I think the best approach is to choose one of the libraries Philipp suggested but I don't have a favorite. Thanks Ted