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: Sun, 24 Mar 2019 11:35:25 +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> <83tvftne0j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006b9f6c0584d3cf14" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="169212"; 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 Sun Mar 24 10:49:58 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 1h7zlN-000hss-DM for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2019 10:49:57 +0100 Original-Received: from localhost ([127.0.0.1]:54031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7zlM-0001Hq-Co for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2019 05:49:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7zkp-0000Zb-2E for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 05:49:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7zXu-0001us-5m for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 05:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42459) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7zXu-0001uk-25 for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 05:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7zXt-00086n-SM for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 05:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: yyoncho Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Mar 2019 09:36: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.155342014531142 (code B ref 31138); Sun, 24 Mar 2019 09:36:01 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 24 Mar 2019 09:35:45 +0000 Original-Received: from localhost ([127.0.0.1]:56003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7zXc-00086D-GP for submit@debbugs.gnu.org; Sun, 24 Mar 2019 05:35:45 -0400 Original-Received: from mail-qt1-f179.google.com ([209.85.160.179]:44850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7zXZ-00085y-UJ for 31138@debbugs.gnu.org; Sun, 24 Mar 2019 05:35:42 -0400 Original-Received: by mail-qt1-f179.google.com with SMTP id w5so7132837qtb.11 for <31138@debbugs.gnu.org>; Sun, 24 Mar 2019 02:35:41 -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=nuWIMEnUjII03DLbG3GZsiJCulm3gn89pMgBR0rSPD4=; b=gxkYXPg4PRanbvQlYCThDNdU4flUYQlQEeqyFlO7bd/JTKWeJ4WV8zeaHUNPWvre8+ MuqStYA/z0O9Gh4orf5afYBr0MrqZQYfHnzJQr/1iSsQKnwcbqCnjQILmL1tsr587x43 rMUJBqJEerxHeaNhExxYIKVcgtcbYf5NjNLX1Rd3s0i5hQWv8fNFuksEqgYoREVx3ykH yX31/QcDKWAAerOemRTVR/sa4TMIDlZwhL0fcmp4Aa0tJHxJ3hGdXruSv0f5NbDNiYu2 bZWAaAxPKRBCvKVMG1k3SKCG1QHyb+14bHOvg5BwK/zOc+MlsDdAqsdQkJu+41+Gozrr uziA== 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=nuWIMEnUjII03DLbG3GZsiJCulm3gn89pMgBR0rSPD4=; b=LhGCyS+S3ipVcWfWDZbcu1R/HzImf+xARSxjSoK/PR1WIA351iupVQg2LtLJBAIeT6 j+j4iuqHx8IAL340BS1KxOvLnRGQBPgEsPAExO/CanmU17lZQWyBCwsSqqcEfAhgdy05 dYIp5mBQnLNMSyrehiR+BO0gG3CH7/pUyJMlneUmzs9icQRW6WF6uaJnP4Rk1/TDwPpx yAntmCmcoeMi2adfbuaXQXsPxugIN/Duzaz8lKGO/DRHHQVkITBOn7bdavQYJFDV2bCX lee+nkZ5xzqXLwLJDrA32QSA76SyMR+NRpqcNyXAIdFFigFHLXhr4sPD8L+PFrgSdn+4 vJKQ== X-Gm-Message-State: APjAAAX1YVqZciL0x5NKMi+hrCakYhmTu3JDnV7jgjzd4RMEPpTxJ1zk xM7jxLYQR5Bokx/csW5EENA9O0gQNk1pRQG+RY8= X-Google-Smtp-Source: APXvYqxuMYsyadefwAgQTwlQ7pfnuwRSIVZazxw2bR9D1ktwFxJwDSqjVK0adP9MgT2QlI8nshXslLoSrfDnbwLbIko= X-Received: by 2002:ac8:2273:: with SMTP id p48mr15500521qtp.7.1553420136454; Sun, 24 Mar 2019 02:35:36 -0700 (PDT) In-Reply-To: <83tvftne0j.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:156687 Archived-At: --0000000000006b9f6c0584d3cf14 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Eli, The callstack is pretty much the same, here are the relevant parts: [-] code_convert_string_norecord@0x000055555565e30d (coding.c:9488) [-] module_make_string@0x00005555557d8f0d (emacs-module.c:597) [-] emacs::convert:: for &=E2=80=99a T>::into_lisp@0x00007fffdeafe8c1 (Unknown source) [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb0117e (Unknown source) [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb0169f (Unknown source) [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb012b3 (Unknown source) [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb0169f (Unknown source) [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb0169f (Unknown source) [-] emacs_json_lsp::parse_string@0x00007fffdeb019a9 (Unknown source) [-] std::panicking::try::do_call@0x00007fffdeb02a9f (Unknown source) [-] __rust_maybe_catch_panic@0x00007fffdeb2f26a (src/libpanic_unwind/ lib.rs:102) [-] ::handle_call@0x00007fffdeb0277a (Unknown source) [-] emacs_json_lsp::init::extern_lambda@0x00007fffdeb01cc4 (Unknown source) Thanks, Ivan On Sun, Mar 24, 2019 at 5:32 AM Eli Zaretskii wrote: > > From: yyoncho > > Date: Sat, 23 Mar 2019 23:04:18 +0200 > > Cc: S=C3=A9bastien Chapuis , > > 31138@debbugs.gnu.org > > > > 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. > > Yes, a callstack in the case of modules would be helpful (although I > think I can guess where it will point). > > Thanks. > --0000000000006b9f6c0584d3cf14 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

The callstack = is pretty much the same, here are the relevant parts:

<= div>
=C2=A0 =C2=A0 [-] code_convert_string_norecord@0x000055555565e30d = (coding.c:9488)
=C2=A0 =C2=A0 [-] module_make_string@0x000055= 55557d8f0d (emacs-module.c:597)
=C2=A0 =C2=A0 [-] emacs::convert:= :<impl emacs::IntoLisp<=E2=80=99e> for &=E2=80=99a T>::into= _lisp@0x00007fffdeafe8c1 (Unknown source)
=C2=A0 =C2=A0 [-] emacs= _json_lsp::json_to_lisp@0x00007fffdeb0117e (Unknown source)
=C2= =A0 =C2=A0 [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb0169f (Unknown sou= rce)
=C2=A0 =C2=A0 [-] emacs_json_lsp::json_to_lisp@0x00007fffdeb= 012b3 (Unknown source)
=C2=A0 =C2=A0 [-] emacs_json_lsp::json_to_= lisp@0x00007fffdeb0169f (Unknown source)
=C2=A0 =C2=A0 [-] emacs_= json_lsp::json_to_lisp@0x00007fffdeb0169f (Unknown source)
=C2=A0= =C2=A0 [-] emacs_json_lsp::parse_string@0x00007fffdeb019a9 (Unknown source= )
=C2=A0 =C2=A0 [-] std::panicking::try::do_call@0x00007fffdeb02a= 9f (Unknown source)
=C2=A0 =C2=A0 [-] __rust_maybe_catch_panic@0x= 00007fffdeb2f26a (src/libpanic_unwind/lib.rs:= 102)
=C2=A0 =C2=A0 [-] <emacs::CallEnv as emacs::func::Han= dleCall>::handle_call@0x00007fffdeb0277a (Unknown source)
=C2= =A0 =C2=A0 [-] emacs_json_lsp::init::extern_lambda@0x00007fffdeb01cc4 (Unkn= own source)

Thanks,
Ivan
=

On Sun, Mar 24, 2019 at 5:32 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: yyoncho <yyoncho@gmail.com>
> Date: Sat, 23 Mar 2019 23:04:18 +0200
> Cc: S=C3=A9bastien Chapuis <sebastien@chapu.is>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A031138@debbugs.gnu.org
>
> 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. Pleas= e reply back if you need a callstack.

Yes, a callstack in the case of modules would be helpful (although I
think I can guess where it will point).

Thanks.
--0000000000006b9f6c0584d3cf14--