From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31138: Native json slower than json.el Date: Sat, 23 Mar 2019 16:00:00 +0200 Message-ID: <83k1gppu73.fsf@gnu.org> References: <87sh806xwa.fsf@chapu.is> <834lkf7ely.fsf@gnu.org> <878t9own1p.fsf@chapu.is> <838t9o4hvl.fsf@gnu.org> <83r2ayovkx.fsf@gnu.org> <83pnqiormy.fsf@gnu.org> <83lg15pvzr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="213733"; mail-complaints-to="usenet@blaine.gmane.org" Cc: sebastien@chapu.is, 31138@debbugs.gnu.org To: yyoncho Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 23 15:01:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7hD2-000tVv-Pb for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 15:01:16 +0100 Original-Received: from localhost ([127.0.0.1]:43795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7hD1-0000gU-Nc for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 10:01:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7hCp-0000fF-OC for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 10:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7hCo-0006MM-IT for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 10:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7hCo-0006MB-CH for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 10:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7hCo-0004PN-8t for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31138 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 31138-submit@debbugs.gnu.org id=B31138.155334962416882 (code B ref 31138); Sat, 23 Mar 2019 14:01:02 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 23 Mar 2019 14:00:24 +0000 Original-Received: from localhost ([127.0.0.1]:55635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7hCB-0004OE-Nf for submit@debbugs.gnu.org; Sat, 23 Mar 2019 10:00:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7hC9-0004Nz-Gy for 31138@debbugs.gnu.org; Sat, 23 Mar 2019 10:00:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7hC2-0005nR-Pa; Sat, 23 Mar 2019 10:00:16 -0400 Original-Received: from [176.228.60.248] (port=2567 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h7hBq-0001xE-IM; Sat, 23 Mar 2019 10:00:05 -0400 In-reply-to: (message from yyoncho on Sat, 23 Mar 2019 15:31:39 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156660 Archived-At: > From: yyoncho > Date: Sat, 23 Mar 2019 15:31:39 +0200 > Cc: Sébastien Chapuis , > 31138@debbugs.gnu.org > > Take a look at the following piece of code: > > https://gist.github.com/yyoncho/9e9c4e14734fdd9a22d6600a88a27ae1 > (with the latest emacs compiled from master) OK. > Unfortunately, I wasn't unable to reproduce the behaviour with "emacs -q" and even it does not reproduce > right after I load my emacs configuration but after doing some navigation/coding. Sorry, I don't think I understand what behavior you were unable to reproduce. Please elaborate. > I believe that native parsing is > calling some function list defined in the elisp space but I am unable to track down this. Maybe so, but I don't think I see a Lisp function called from json.c code. > Please, let me know what I can do to help to diagnose this issue. Are we still talking about too-slow performance of json-parse-string? If so, and if you think some Lisp code is responsible for that, then running your benchmark test under profiler.el would be the first thing I'd suggest.