From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: yyoncho Newsgroups: gmane.emacs.bugs Subject: bug#31138: Native json slower than json.el Date: Sat, 23 Mar 2019 23:04:18 +0200 Message-ID: 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> <83k1gppu73.fsf@gnu.org> <83ftrdprmj.fsf@gnu.org> <83d0mhpn99.fsf@gnu.org> <83zhplo25s.fsf@gnu.org> <83va09nwg3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004105780584c951f6" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70423"; mail-complaints-to="usenet@blaine.gmane.org" Cc: =?UTF-8?Q?S=C3=A9bastien?= Chapuis , 31138@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 23 22:05:27 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 1h7npW-000IDn-Ks for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 22:05:26 +0100 Original-Received: from localhost ([127.0.0.1]:48094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7npV-00058x-FI for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 17:05:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7npD-000550-SO for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 17:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7npB-0006Ej-Ug for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 17:05:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7np8-0006Co-AC for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 17:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7np7-0006Ra-Ra for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 17:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: yyoncho Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 21:05:01 +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.155337507724737 (code B ref 31138); Sat, 23 Mar 2019 21:05:01 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 23 Mar 2019 21:04:37 +0000 Original-Received: from localhost ([127.0.0.1]:55831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7noi-0006Qu-MG for submit@debbugs.gnu.org; Sat, 23 Mar 2019 17:04:36 -0400 Original-Received: from mail-qt1-f172.google.com ([209.85.160.172]:33332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7noh-0006Qi-Fd for 31138@debbugs.gnu.org; Sat, 23 Mar 2019 17:04:35 -0400 Original-Received: by mail-qt1-f172.google.com with SMTP id k14so6400091qtb.0 for <31138@debbugs.gnu.org>; Sat, 23 Mar 2019 14:04:35 -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=AoP5SzZiG8lR43VoImmqZDrIF6ivDgAKd6putmYfCbA=; b=NkveYeDMyWL+TNcBVTxg5he15Gv/QUabrBvNsWiwsVbZzrLGRuCWCg2Fgc3gM3X0g/ 6RTP/FrGAN4s1BtA0KMF2/1f0p92oep/vrMv3UpGN78fHxFpNFAkiGMmlk3VZ7GbnsSQ azN0acOes2zzVmb6jQQBl9QKLp8FHPP/YA1q/LYF2W127pSeSs/FC0ql3s9mYcJ5ws5h 1jmGAK+3Zd4sxeyVPchZBTzxVZWqWX+xlYhOOzA3DyPzVkLQYcimPpW++MQemgdd/bsU ZYqUWhlwI6F99+EBr6rusV7L7Xrb4iYna0T0Xq6D0j4ZDdEnBM06b4QmHW5IFq9X6hZp 5HMA== 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=AoP5SzZiG8lR43VoImmqZDrIF6ivDgAKd6putmYfCbA=; b=BW94HnzLRbXP/VZi4YBj4Yuw03NlRyjSr/hqXX37fkBd8LrLhqZL00spy1Ka3/tSAK 4AfdJ1jpgVGlp0Mv2LL7xWw2mB+vTQZ08+mi3ZB+IeALiaC7d1k215f5b43xDNh/iUvT gJBeUfUKDfexbRtu+dfRslX36v5rDYnelsbnFsLXtBtsaYAn+amU+KqlqZJWmVjAcT1h QCaBHM/YfavmFYSK34sk50LmGU+h6jkKuPzPAdLtdkBkfa8D0/gRuL/CDPIAWCm8CM1N S22cYg59N5r2ooaWZiIscDq9l3gK3u4wCrGKyhPAV9XY+C5wx7K+mAYNZQPDJKh2/2+A oPFA== X-Gm-Message-State: APjAAAVJpRro1Tq6de08h1S/1VfQ0e2iXO29JdfPbxZCLlkte5yqhv8g r7uPZsuS060oS0Z02EOvommiVpohFDhXWji5ELg= X-Google-Smtp-Source: APXvYqyj5faMxyWAGrz/muE1CLleciKLt9qrksaPHXf/79JMfx9kWXVNIyTWM0tcDMpakjxnEzrHzd5I60nu4A9kOfU= X-Received: by 2002:a0c:814d:: with SMTP id 71mr3864137qvc.47.1553375070060; Sat, 23 Mar 2019 14:04:30 -0700 (PDT) In-Reply-To: <83va09nwg3.fsf@gnu.org> 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:156681 Archived-At: --0000000000004105780584c951f6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable HI Eli, I will try with run-hooks =3D nil. (I still cannot reproduce the issue consistently). As a side note, I think that similar issue affects emacs dynamic modules based on my limited testing. Please reply back if you need a callstack. Thanks, Ivan On Sat, Mar 23, 2019 at 10:54 PM Eli Zaretskii wrote: > > From: yyoncho > > Date: Sat, 23 Mar 2019 22:23:49 +0200 > > Cc: S=C3=A9bastien Chapuis , > > 31138@debbugs.gnu.org > > > > Here it is the offending callstack. > > > > https://gist.github.com/yyoncho/7032464b456f60270100c747f42885f8 > > OK, thanks. I think I see the reason. > > Does it work for you to bind run-hooks to nil around calls to > json-parse-string? > --0000000000004105780584c951f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI Eli,

I will try with run-hooks =3D n= il. (I still cannot reproduce the issue consistently). As a side note, I th= ink that similar issue affects emacs dynamic modules based on my limited te= sting. Please reply back if you need a callstack.=C2=A0

Thanks,
Ivan


On Sat, Mar 23, 2019 at 10= :54 PM Eli Zaretskii <eliz@gnu.org&g= t; wrote:
> F= rom: yyoncho <yyo= ncho@gmail.com>
> Date: Sat, 23 Mar 2019 22:23:49 +0200
> Cc: S=C3=A9bastien Chapuis <sebastien@chapu.is>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A031138@debbugs.gnu.org
>
> Here it is the offending callstack.
>
> https://gist.github.com/yyoncho= /7032464b456f60270100c747f42885f8

OK, thanks.=C2=A0 I think I see the reason.

Does it work for you to bind run-hooks to nil around calls to
json-parse-string?
--0000000000004105780584c951f6--