unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Shmakov <ivan@siamics.net>
To: 20154@debbugs.gnu.org, Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#20154: 25.0.50; json-encode-string is too slow for large strings
Date: Sun, 22 Mar 2015 19:15:18 +0000	[thread overview]
Message-ID: <87vbhsvo6x.fsf@violet.siamics.net> (raw)
In-Reply-To: <550EF21C.6060403@yandex.ru> (Dmitry Gutov's message of "Sun, 22 Mar 2015 18:47:24 +0200")

>>>>> Dmitry Gutov <dgutov@yandex.ru> writes:
>>>>> On 03/22/2015 06:15 PM, Ivan Shmakov wrote:

[…]

 >>> (push (substring string start l) res)
 >>> (push "\"" res)
 >>> (apply #'concat (nreverse res))))

 >> I guess you can (apply #'concat "\"" (substring …) (nreverse …))
 >> 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’ve misunderstood the code a bit.

[…]

 >> 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’s possible to subscribe to bug-gnu-emacs@.  It’s 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’s the limitation of the
	debbugs.gnu.org instance – the software itself /does/ allow for
	such subscription.

 > So that excludes Eli (although he probably subscribes to all bugs
 > anyway).

	Yes.

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A





  parent reply	other threads:[~2015-03-22 19:15 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-20 14:26 bug#20154: 25.0.50; json-encode-string is too slow for large strings Dmitry Gutov
2015-03-20 14:34 ` Eli Zaretskii
2015-03-20 14:43   ` Dmitry Gutov
2015-03-20 15:03     ` Eli Zaretskii
2015-03-20 15:20       ` Dmitry Gutov
2015-03-20 16:02         ` Eli Zaretskii
2015-03-20 16:21           ` Dmitry Gutov
2015-03-20 16:44             ` Eli Zaretskii
2015-03-20 16:52               ` Dmitry Gutov
2015-03-20 17:44                 ` Eli Zaretskii
2015-03-20 18:42                   ` Dmitry Gutov
2015-03-20 21:14                     ` Eli Zaretskii
2015-03-20 22:02                       ` Dmitry Gutov
2015-03-21  7:58                         ` Eli Zaretskii
2015-03-21  8:12                           ` Eli Zaretskii
2015-03-21 20:00                           ` Dmitry Gutov
2015-03-21 20:25                             ` Eli Zaretskii
2015-03-21 21:26                               ` Dmitry Gutov
2015-03-22 17:31                                 ` Eli Zaretskii
2015-03-22 18:13                                   ` Dmitry Gutov
2015-03-22 18:26                                   ` Dmitry Gutov
2015-03-22 18:32                                     ` Eli Zaretskii
2015-03-22 19:03                                       ` Dmitry Gutov
2015-03-21 21:05                             ` Drew Adams
2015-03-21 21:32                               ` Dmitry Gutov
2015-04-20 22:20                         ` Ted Zlatanov
2015-04-20 22:41                           ` Dmitry Gutov
2015-04-20 23:11                             ` Ted Zlatanov
2015-03-20 22:26                       ` Dmitry Gutov
2015-03-21  8:07                         ` Eli Zaretskii
2015-03-21 21:09                           ` Dmitry Gutov
2015-03-21 22:20                             ` Ivan Shmakov
2015-03-21 23:36                               ` Dmitry Gutov
2015-03-22 14:52                             ` Dmitry Gutov
2015-03-22 16:15                               ` Ivan Shmakov
2015-03-22 16:47                                 ` Dmitry Gutov
2015-03-22 17:43                                   ` Eli Zaretskii
2015-03-22 19:15                                   ` Ivan Shmakov [this message]
2015-03-22 16:51                                 ` Eli Zaretskii
2015-03-22 18:22                                 ` Glenn Morris
2015-03-22 16:50                               ` Eli Zaretskii
2015-03-22 17:10                                 ` Dmitry Gutov
2015-03-22 22:57           ` Dmitry Gutov
2015-03-23 15:37             ` Eli Zaretskii
2015-04-07 13:31               ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbhsvo6x.fsf@violet.siamics.net \
    --to=ivan@siamics.net \
    --cc=20154@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).