From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 34350@debbugs.gnu.org, dgutov@yandex.ru
Subject: bug#34350: 27.0.50; ediff-revision broken with SVN backend + non ascii chars both in directory and in filename
Date: Sat, 09 Feb 2019 09:03:08 -0500 [thread overview]
Message-ID: <jwvsgwxxe2h.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <83d0o1nkmu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Feb 2019 15:42:33 +0200")
>> Why should reading from a pipe be slower than from a file?
> Because we read in small chunks,
I understand that what we currently do, but is it really inevitable?
I know you can't transfer an arbitrarily large text with a single `write`
at one end of a pipe and a single `read` at the other (contrary to what
happens with files), but it should be possible to use chunks large
enough that the efficiency is comparable.
> and need to enlarge the gap each time.
Yes, this used to be a real problems in set-buffer-multibyte (with O(N²)
behavior), but nowadays it should be a relatively small constant factor.
Of course, if needed, we could provide some way for the Elisp code to
"preallocate" space to avoid resizing the buffer too many times.
[ Goes on dreaming about a buffer representation made of a tree of
immutable text-chunks... ]
> OK, so we basically agree. I will try to remove the cruft from some
> of that, thanks for the feedback.
Right. Maybe we could improve the backend API, but that's a side
problem: the real pressing problem is just cruft and should not be too
hard to fix.
Stefan
next prev parent reply other threads:[~2019-02-09 14:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-06 19:52 bug#34350: 27.0.50; ediff-revision broken with SVN backend + non ascii chars both in directory and in filename Vincent Belaïche
2019-02-07 15:41 ` Eli Zaretskii
2019-02-07 22:27 ` Vincent Belaïche
2019-02-08 7:02 ` Eli Zaretskii
2019-02-07 15:50 ` Eli Zaretskii
2019-02-08 16:08 ` Stefan Monnier
2019-02-08 21:18 ` Eli Zaretskii
2019-02-08 21:50 ` Stefan Monnier
2019-02-08 22:10 ` Eli Zaretskii
2019-02-08 23:03 ` Stefan Monnier
2019-02-09 9:01 ` Eli Zaretskii
2019-02-09 13:12 ` Stefan Monnier
2019-02-09 13:42 ` Eli Zaretskii
2019-02-09 14:03 ` Stefan Monnier [this message]
2019-02-11 21:20 ` Vincent Belaïche
2019-02-11 22:00 ` Stefan Monnier
2019-02-08 17:25 ` Dmitry Gutov
2019-02-08 21:45 ` Eli Zaretskii
2019-02-09 7:58 ` Dmitry Gutov
2019-02-09 8:23 ` Eli Zaretskii
2019-02-10 19:52 ` Vincent Belaïche
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvsgwxxe2h.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=34350@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=eliz@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.