From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#20154: 25.0.50; json-encode-string is too slow for large strings Date: Sun, 22 Mar 2015 19:15:18 +0000 Message-ID: <87vbhsvo6x.fsf@violet.siamics.net> References: <86twxf68zk.fsf@yandex.ru> <83384zwxdx.fsf@gnu.org> <550C3218.4000903@yandex.ru> <831tkjww0y.fsf@gnu.org> <550C3AB9.7020403@yandex.ru> <83wq2bveq6.fsf@gnu.org> <550C491A.6000909@yandex.ru> <83siczvcss.fsf@gnu.org> <550C504A.10708@yandex.ru> <83r3sjva0q.fsf@gnu.org> <550C6A06.6040203@yandex.ru> <83fv8zv0b1.fsf@gnu.org> <550C9E7B.4060907@yandex.ru> <837fuavkn9.fsf@gnu.org> <550DDE25.1090000@yandex.ru> <550E0097.9000500@yandex.ru> <550ED713.2010201@yandex.ru> <87384xvwi3.fsf@violet.siamics.net> <550EF21C.6060403@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1427051786 7937 80.91.229.3 (22 Mar 2015 19:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Mar 2015 19:16:26 +0000 (UTC) To: 20154@debbugs.gnu.org, Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 22 20:16:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZlM6-0005d7-5c for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 20:16:14 +0100 Original-Received: from localhost ([::1]:52110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZlM2-0006uo-Lm for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 15:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZlLz-0006uX-5b for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 15:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZlLv-00019F-Tk for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 15:16:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZlLu-000192-Np for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 15:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YZlLu-0007p6-7K for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 15:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2015 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20154-submit@debbugs.gnu.org id=B20154.142705173230030 (code B ref 20154); Sun, 22 Mar 2015 19:16:02 +0000 Original-Received: (at 20154) by debbugs.gnu.org; 22 Mar 2015 19:15:32 +0000 Original-Received: from localhost ([127.0.0.1]:60956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZlLQ-0007oH-2w for submit@debbugs.gnu.org; Sun, 22 Mar 2015 15:15:32 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:60988) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZlLM-0007o7-Br for 20154@debbugs.gnu.org; Sun, 22 Mar 2015 15:15:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=yTlFap2doUxwQV08molA9TMrSneYyXicwqRFw9oj3lU=; b=S4grmek8H4m/T79v2X3/RQsdW5W+0SLKnE0FuopDIC9fKp8b6LwSslf0hDm9QmYqpF872BQ/LiX5/+zKcpyyXmQPRfXN4P0AY+CMSCYSAog8Wjhpz9k3qaZr+OG4eF0NIcAaZdcWDtYL/bwh92AyYOLmn0lMwASV9p+GgWdBtLc=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YZlLK-0000kF-EP; Sun, 22 Mar 2015 19:15:26 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YZlLD-0005kG-NO; Mon, 23 Mar 2015 02:15:19 +0700 Mail-Followup-To: 20154@debbugs.gnu.org, Dmitry Gutov In-Reply-To: <550EF21C.6060403@yandex.ru> (Dmitry Gutov's message of "Sun, 22 Mar 2015 18:47:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100812 Archived-At: >>>>> Dmitry Gutov writes: >>>>> On 03/22/2015 06:15 PM, Ivan Shmakov wrote: [=E2=80=A6] >>> (push (substring string start l) res) >>> (push "\"" res) >>> (apply #'concat (nreverse res)))) >> I guess you can (apply #'concat "\"" (substring =E2=80=A6) (nreverse = =E2=80=A6)) >> just as well, instead of pushing to the list just before getting rid >> of it. > Also good idea, but partially. That gets rid of the initial binding > for res', but those (substring ...) value and quote have to go to the > end of the string. We can't put them as the last arguments to > `apply'. Indeed, I=E2=80=99ve misunderstood the code a bit. [=E2=80=A6] >> Curiously, per my experience, the practice of Cc:-ing the >> subscribers tends to be frowned upon when it comes to the lists >> dedicated to free software. For the reasons I do not know or >> understand, Emacs lists are apparently an exception, though. > To the best of my knowledge, debbugs only sends a copy to the bug's > author, Not at all. > and there's no way to subscribe. It=E2=80=99s possible to subscribe to bug-gnu-emacs@. It=E2=80=99s also possible to subscribe to nntp://news.gmane.org/gmane.emacs.bugs/ instead; that way only the messages requested by the user agent (assuming one which does support both mail /and/ news) will actually be transferred. No clutter to the mailbox, too. Moreover, unless I be mistaken, that=E2=80=99s the limitation of the debbugs.gnu.org instance =E2=80=93 the software itself /does/ allow for such subscription. > So that excludes Eli (although he probably subscribes to all bugs > anyway). Yes. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A