From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: String encoding in json.c Date: Sun, 24 Dec 2017 22:48:17 +0200 Message-ID: References: <83tvwhjyi5.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1514148398 24622 195.159.176.226 (24 Dec 2017 20:46:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Dec 2017 20:46:38 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii , Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 24 21:46:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTDAF-0005wX-BV for ged-emacs-devel@m.gmane.org; Sun, 24 Dec 2017 21:46:32 +0100 Original-Received: from localhost ([::1]:39975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTDCD-0005Qk-Ku for ged-emacs-devel@m.gmane.org; Sun, 24 Dec 2017 15:48:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTDC7-0005QL-GE for emacs-devel@gnu.org; Sun, 24 Dec 2017 15:48:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTDC3-0001ZB-Bt for emacs-devel@gnu.org; Sun, 24 Dec 2017 15:48:27 -0500 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:33829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTDC3-0001YS-4u; Sun, 24 Dec 2017 15:48:23 -0500 Original-Received: by mail-wm0-x231.google.com with SMTP id y82so31345967wmg.1; Sun, 24 Dec 2017 12:48:22 -0800 (PST) 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=OX01p67ke4clVbguBeN4mLo1XCEhLtNml/NfzENH00I=; b=TK1szO7lS3a1Mtqz/oMw5EShEATEWX+MKINYFH/Lt0G/+hCo8Ozw0HwCyWu84rN6LA fcMsbrfimcH0dh1PMKfnJhYRA+bxx5VvuLUtlvvEgN82QYEGloMKJ4YhNd/wdPwOx2Jw mg7EU568blQdgaO6rnbdNx0BIJITYyzReebE4oVyNsSLp2V5r4MxKmUMqWcyuVaQmBdV aQbd2RL1vCPgUDtnRFpwut4gYLyfOI7NvG1ti70jmBQb8iGSchKY06Yz8sVMfe4UOfmA R9It42KN4fxzTIYog2mX0SJhypyycgdVT8d1hSBMXbuqY/yeC3KbQJIRXe7kfjBeGNIN /UfA== 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=OX01p67ke4clVbguBeN4mLo1XCEhLtNml/NfzENH00I=; b=QapkNcbHJSbHFqfXVhuYMvDzydH2GecKSxe2YCTgqdOQHj0JAKAuOvt3x++PYiyiyQ wS8EmKSUrMofeSJn8fzmr9aje0GgY9Ao/4fmEgcTgs2MW146prVU5RGid39XIwn00JZX P/pSHCx2okDiZtooRRGyr5/VPf70byNxNoIihNqskCmBE6PEx+81burLtwvLRJhacjKV jy2YXuZOJ4voKMdpQ4LGHZqiRx3Pwkz2r2f03Kv7/hvdHAiBXxeqPMUvgsxuoBW6JrlB s2NCWjEjbIO3nuwsysrUbK6tZQuq7/jJGMKXMY1KffMnYblXAoxqOV3pwWfYv1vnQ6Q8 sYKQ== X-Gm-Message-State: AKGB3mKuOvBoBUG/nrqV47hK45thJFDBGOsm7a9PDDeKBZOmEI0Hr04r TgPb2qcSgCoY4ZD6Oru+sE8koLZa X-Google-Smtp-Source: ACJfBotf7D1fiWBUT5ecMcASkwxV+ybPhCfh4Qj87hqTl77iqqbiVB+KocWdXsLTlJsrUZDt6qi8PA== X-Received: by 10.80.202.72 with SMTP id e8mr24636873edi.60.1514148501352; Sun, 24 Dec 2017 12:48:21 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id g7sm23934274edj.12.2017.12.24.12.48.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Dec 2017 12:48:20 -0800 (PST) In-Reply-To: <83tvwhjyi5.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221404 Archived-At: Hi Eli, On 12/23/17 4:43 PM, Eli Zaretskii wrote: > The main purpose of Emacs is to be an efficient editor, so if we care > about the slow-down of code conversions, we should first and foremost > speed up reading and writing files. JSON conversion, with all due > respect to them, are not the main business for us, and I'm not even > sure JSON objects will frequently be as large as files our users visit > all the time. FWIW, a significant use case for json.el is encoding a structure containing the whole contents of the current buffer as one of the values (several protocols for external code completion tools use this).