From: Alex Harsanyi <alexharsanyi@gmail.com>
To: emacs-devel@gnu.org
Subject: Fwd: w32-pipe-read-delay (was: vc-dir operation is very slow on large git repositories in Emacs 26.1)
Date: Sat, 23 Jun 2018 21:30:46 +0800 [thread overview]
Message-ID: <CAH-ciFoYKHAvvVGfVi6Zed=KGPuY0GObjP=Wfwb+9Vfjr1nhjw@mail.gmail.com> (raw)
In-Reply-To: <CAH-ciFrCk=pVTDUA+8F1XZSK40Wr21yzz3u=mutJ0NM3UdojNw@mail.gmail.com>
On Sat, Jun 23, 2018 at 3:21 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> (I'm surprised that this variable had such a profound effect with
> Git's ls-files, but maybe that has something to do with the MSYS
> components in Git on Windows.)
>
I don't think this has anything to do with Git or MSYS: I wrote a C++ program
to output 1 Mb of data (similar to the perl program I wrote earlier) and I
compiled this using Visual Studio, to get a native windows console
application. I than set w32-pipe-buffer-size to 0 and experimented with
various settings for the w32-pipe-read-delay, using the `time-process`
function (see my previous email). Here are the results:
* when w32-pipe-read-delay is 50 milliseconds, it takes 13.2 seconds to read 1
Mb of piped data from the C++ executable.
* when it is 25 milliseconds, it takes 6.8 secons to read the same data
* when it is 12 milliseconds, it takes 3.47 seconds to read the same data
* when it is 0, it takes 0.13 seconds
Increasing w32-pipe-buffer-size had no effect on the speed -- I know I said in
a previous email that it had an effect, but I only tried to increase it after
dropping w32-pipe-read-delay to 0 and tried it once -- sometimes the time
drops further from 0.13 to 0.8 seconds, but this seems random -- at this
speed, probably other factors, such as process startup, have an effect on the
read speed.
On Monday, I will test it against my work repository with 50000 files, and
will report back on that.
Alex.
next prev parent reply other threads:[~2018-06-23 13:30 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 10:50 vc-dir operation is very slow on large git repositories in Emacs 26.1 Alex Harsanyi
2018-06-20 15:51 ` Eli Zaretskii
2018-06-20 22:33 ` Alex Harsanyi
2018-06-21 14:32 ` Eli Zaretskii
2018-06-22 1:12 ` Alex Harsanyi
2018-06-22 8:57 ` Eli Zaretskii
2018-06-22 9:46 ` Alex Harsanyi
2018-06-22 12:46 ` Alex Harsanyi
2018-06-22 18:24 ` Eli Zaretskii
2018-06-22 20:43 ` w32-pipe-read-delay (was: vc-dir operation is very slow on large git repositories in Emacs 26.1) Stefan Monnier
2018-06-23 7:21 ` Eli Zaretskii
[not found] ` <CAH-ciFrCk=pVTDUA+8F1XZSK40Wr21yzz3u=mutJ0NM3UdojNw@mail.gmail.com>
2018-06-23 13:30 ` Alex Harsanyi [this message]
2018-06-23 13:32 ` Alex Harsanyi
2018-06-23 13:40 ` Eli Zaretskii
2018-06-23 14:00 ` Alex Harsanyi
2018-06-23 14:31 ` Eli Zaretskii
2018-06-30 8:46 ` Eli Zaretskii
2018-06-25 10:40 ` vc-dir operation is very slow on large git repositories in Emacs 26.1 Alex Harsanyi
2018-06-25 11:09 ` Bastian Beischer
2018-06-25 12:23 ` Alex Harsanyi
2018-06-25 15:17 ` Eli Zaretskii
2018-06-25 15:44 ` Bastian Beischer
2018-06-25 16:23 ` Eli Zaretskii
2018-06-25 22:28 ` Alex Harsanyi
2018-06-25 14:51 ` Eli Zaretskii
2018-06-22 9:04 ` Dmitry Gutov
2018-06-23 13:37 ` Eli Zaretskii
2018-06-23 18:28 ` Dmitry Gutov
2018-06-23 18:44 ` Eli Zaretskii
2018-06-25 12:55 ` Dmitry Gutov
2018-06-25 15:20 ` Eli Zaretskii
2018-06-26 15:14 ` Sergey Organov
2018-06-27 2:01 ` Dmitry Gutov
2018-06-27 2:49 ` Tom Tromey
2018-06-27 9:41 ` Dmitry Gutov
2018-06-27 15:12 ` Eli Zaretskii
2018-06-28 0:30 ` Dmitry Gutov
2018-06-28 12:55 ` Eli Zaretskii
2018-06-28 13:06 ` Dmitry Gutov
2018-06-28 13:12 ` Eli Zaretskii
2018-06-28 13:18 ` Dmitry Gutov
2018-06-28 13:38 ` Eli Zaretskii
2018-06-28 13:47 ` Dmitry Gutov
2018-06-28 14:00 ` Eli Zaretskii
2018-06-28 13:21 ` Sergey Organov
2018-06-28 13:28 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH-ciFoYKHAvvVGfVi6Zed=KGPuY0GObjP=Wfwb+9Vfjr1nhjw@mail.gmail.com' \
--to=alexharsanyi@gmail.com \
--cc=emacs-devel@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.