From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#31138: Native json slower than json.el Date: Mon, 22 Apr 2019 16:54:19 +0300 Message-ID: <3ae05c72-88bb-8748-2a2c-beae2d9a2746@yandex.ru> References: <87sh806xwa.fsf@chapu.is> <83lg12n75s.fsf@gnu.org> <83h8bqn2ik.fsf@gnu.org> <83zhphliil.fsf@gnu.org> <181b93a3-3861-0481-1b95-8344410d1049@yandex.ru> <83r2a2hdxn.fsf@gnu.org> <21f68973-a684-2a65-82eb-c8f3df90127f@yandex.ru> <83d0lmgez2.fsf@gnu.org> <7d503be9-4d85-3d0b-6829-631ad376ba3d@yandex.ru> <831s22gcci.fsf@gnu.org> <83y349gasn.fsf@gnu.org> <83d0lfag4x.fsf@gnu.org> <5cf45a21-65c3-67ee-f123-be83a6ee7c99@yandex.ru> <83a7gjaen6.fsf@gnu.org> <837ebnabkf.fsf@gnu.org> <83zhoj8shg.fsf@gnu.org> <6cc7472a-e9b2-5e30-3c44-1709056c02f5@yandex.ru> <83d0le8q8b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="224200"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 Cc: sebastien@chapu.is, yyoncho@gmail.com, 31138@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 22 15:55:11 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 1hIZPa-000w8Z-NN for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 15:55:10 +0200 Original-Received: from localhost ([127.0.0.1]:37762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIZPZ-0000f7-QX for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 09:55:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIZPS-0000f2-OD for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 09:55:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIZPR-0004xB-Qx for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 09:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIZPR-0004wk-NV for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 09:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIZPR-0007fa-Io for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 09:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 13:55: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.155594127129434 (code B ref 31138); Mon, 22 Apr 2019 13:55:01 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 22 Apr 2019 13:54:31 +0000 Original-Received: from localhost ([127.0.0.1]:50235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIZOx-0007eg-7n for submit@debbugs.gnu.org; Mon, 22 Apr 2019 09:54:31 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:42159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIZOv-0007eT-Al for 31138@debbugs.gnu.org; Mon, 22 Apr 2019 09:54:29 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id g3so15890846wrx.9 for <31138@debbugs.gnu.org>; Mon, 22 Apr 2019 06:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qk+a639+tn5dfvqVGmwCN2iqCmyUCN6gkCPeeoQ2MU4=; b=a3hmf6dw2U50DlhbHO9/9lUV4+WLg4udKapXDrCj+sQ1pB3uB0dFL4g+oQog+jXrVp cYA8SMfwFbMUd+k2goks2sKpk7bbLHEOxZLK9WNKzfOhsjd8g2WFqklP+dwGKrDgcMTz 18kcYgos7pI6E/DZwfhO1FdO0GYRKBV6Vz8Xcq9Rvw15sD35cxjgJus3Jgle7Sf02o9g /+MZcV4Vao9kTXJOeDlPrwebxO2OTcS+J7ndtQeaaJaz6YRcnJ6662tu3shKNU53MKTF 7dywsB0LvjQSwWR4V77jizQR8zicBalOqvihCWOD0pmuixWDilUiCLnfxkzePW5977as tPxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qk+a639+tn5dfvqVGmwCN2iqCmyUCN6gkCPeeoQ2MU4=; b=AYxVUSL6U7L2WjdB4aXhsDx6h3imzj30v14eFp/27CK58/riCaEY3bKKeNfr04AX58 muQt2AAajy5UA4eRUzDpUfoT5ePWp3X7nFAcniOEjuiUUCoV6D1EHWFCvVkw/+E78zEq adutgxvIbOVG88xIc4sJatGAVukBu4BUv4cjTNbsp9wTOoDHJBxPH+k4P5wOV7fML+zH lZlTBhePJFlEe2h9hlqXvu+S0oMrKvj0uRRZfCX91PKx+Ft4QyiNQ1BPXbvsqlfBxbQ6 o2GhfnLE1XaepLYQKTZBSpLT8CtmWWyUjSFtj1hxEf0+dRI+Z0v0xvrjEvhoaLbNPRfW h6aA== X-Gm-Message-State: APjAAAXFz0ldqEWk0TdXXyr2K/70xvz9tmSvBJxZwczc1xVuUwu4eHti y4PdxKhElqQDlZyYiS9YEUhXkg9T X-Google-Smtp-Source: APXvYqxIjA7xlfoO4Wl7E84edepW/b/zkyjr8A4cGK9XmF73/6RKzxOBwmrsWuUQgsHH9pBOWrgMLw== X-Received: by 2002:adf:dcc7:: with SMTP id x7mr7626762wrm.6.1555941262966; Mon, 22 Apr 2019 06:54:22 -0700 (PDT) Original-Received: from [192.168.0.195] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id h206sm47177wmf.29.2019.04.22.06.54.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 06:54:21 -0700 (PDT) In-Reply-To: <83d0le8q8b.fsf@gnu.org> Content-Language: en-US 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:158039 Archived-At: On 22.04.2019 10:16, Eli Zaretskii wrote: > Please don't forget that json-parse-string first_encodes_ the input > string in UTF-8, then passes it to libjansson, then_decodes_ each > string element it receives back. So we do some non-trivial processing > besides make_specified_string, and removing decoding only saves part > of that. That actually means that speeding up code_convert_string might *potentially* (e.g. if it's infinitely fast) yield more than 50% performance improvement.