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: Wed, 24 Apr 2019 20:36:56 +0300 Message-ID: References: <87sh806xwa.fsf@chapu.is> <83y349gasn.fsf@gnu.org> <83d0lfag4x.fsf@gnu.org> <5cf45a21-65c3-67ee-f123-be83a6ee7c99@yandex.ru> <83a7gjaen6.fsf@gnu.org> <83ftqa8qsg.fsf@gnu.org> <83muki6y6r.fsf@gnu.org> <4b8c6799-e845-768b-749c-f2a883ab89f8@yandex.ru> <83h8aq6v6a.fsf@gnu.org> <834l6q6ozn.fsf@gnu.org> <83zhoi59ao.fsf@gnu.org> <83wojm57sl.fsf@gnu.org> <83ftq96azk.fsf@gnu.org> <83wojk534g.fsf@gnu.org> <6308ceff-479b-2ce7-2072-41e683978c7c@yandex.ru> <83h8ao4vl0.fsf@gnu.org> <835zr32x2m.fsf@gnu.org> <8f3318e9-25bd-c7af-20dd-ed78d2a92efd@yandex.ru> <831s1r2uzx.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="153439"; 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 Wed Apr 24 19:38:13 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 1hJLqX-000dkp-Nq for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 19:38:13 +0200 Original-Received: from localhost ([127.0.0.1]:45073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJLqW-0006wX-MP for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 13:38:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJLqP-0006wG-UJ for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 13:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJLqO-0003rd-Do for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 13:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJLqM-0003lQ-DK for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 13:38:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJLqM-00023c-96 for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 13:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2019 17:38: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.15561274317846 (code B ref 31138); Wed, 24 Apr 2019 17:38:02 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 24 Apr 2019 17:37:11 +0000 Original-Received: from localhost ([127.0.0.1]:56427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJLpX-00022U-Eg for submit@debbugs.gnu.org; Wed, 24 Apr 2019 13:37:11 -0400 Original-Received: from mail-lf1-f46.google.com ([209.85.167.46]:36100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJLpV-00022F-3L for 31138@debbugs.gnu.org; Wed, 24 Apr 2019 13:37:10 -0400 Original-Received: by mail-lf1-f46.google.com with SMTP id u17so15346800lfi.3 for <31138@debbugs.gnu.org>; Wed, 24 Apr 2019 10:37:09 -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=vbrDD0YJGitNJeLTash9vxglX3Zsb9wRZlvraIhDNZE=; b=XDeQa5jMJJvcMKmkuwbBolU7VRRRue3m8fVNN0XG/UkrMotexTNDGJ/Lt+vSm29IvN uxHQJnb9HVLSDUGxM3ofj9XG7P8RLYiEdlmwkH/8wxYsBgE11DdYOnCxGhj3YufHUXtr e+y8SgDuyAxBAnE6+OQ+BkolCsdjnxQ9+vj6fcUiRFrdciaazOkn/3QPYyApVd0SYzX+ SDfrYtOVLX42+Nch5yHX4Q8Di12Gh2bEOcGsPGBS0FRccf0LDuclK81V3ZakWKv6CeQ2 VRO/0uX8LRaYhgi/PvvhWx8YKlfWJbQdYxZccnwAfHAOrP8XdneV713L8TmKP+l0MUGk PdHg== 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=vbrDD0YJGitNJeLTash9vxglX3Zsb9wRZlvraIhDNZE=; b=qe5UeNnuWvpqcnUpHjIjxMa/aHis+KO5yQzepUWUlR2nOqcYVQ5Iblg7zSSXBwG8Om zc1Cf7EJKNq206dzoxzMr3EbNPGoW8MHKdISp6s4NlOjYdqI5uEXyuoUKepfghDPVekt QbFzzrRr84pCCXtO/9Xd0yvFVSTO/dnYZdPF/o1w021Z7jSl/+m4dvsz3VwtPdDJQRcb +cu0H4IUmv6mfpGCCLGT+yGUiUlak7I0ZrcH8Vf2w3WZbpUVRgrOc1pwCEZLIC84BpeL C/1nJxkno4awd4sfsagC5UqM4MGT+hNsJztP6CIMQsKygaUjx58PmvgjWH8vt0KqETSe c1rw== X-Gm-Message-State: APjAAAWgNJwJ1tKdqfDvMKkt6QRz8e2bts3wvmwXtev15efKVBDv9Opc BMdayDQ7pSxcF8RE6pcezYm7HthU X-Google-Smtp-Source: APXvYqyVodG+lFJ1Jjy89liS7i+tlxB4Aly6xPJ0ptPUGkULprfYv2O0VLF0OBrhVv517NOOZ9NYFg== X-Received: by 2002:ac2:54b4:: with SMTP id w20mr17902135lfk.149.1556127422180; Wed, 24 Apr 2019 10:37:02 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id 10sm730862ljc.48.2019.04.24.10.36.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 10:37:00 -0700 (PDT) In-Reply-To: <831s1r2uzx.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:158192 Archived-At: On 24.04.2019 20:06, Eli Zaretskii wrote: > No, I think it's decoded by low-level code which reads output from the > process. At least by default. But what conversion primitives does that low-level code use? code_convert_region? > The question is, do we want to signal an error ourselves, or do we > want to rely on the library? Relying on the library is probably faster. Though I'm not sure why we would be confident enough to rely on it in this case, but not the other. I'll happily benchmark a patch, if you have any.