[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does adding a useless copy-sequence and discarding the result ma
From: |
Stephen Leake |
Subject: |
Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster? |
Date: |
Sun, 26 Mar 2017 08:14:38 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) |
Clément Pit-Claudel <address@hidden> writes:
> I can't make sense of the following three observations: adding a
> useless (copy-sequence …) and discarding the result makes my code
> roughly 20-times faster, sending strings of length 2^16+1 to a
> subprocess is several times slower than sending strings of length
> 2^16, and sending 2^6 strings of length 2^10 is much faster than
> sending a single string of length 2^16.
I have also seen weird timing behavior with subprocess communication.
One thing to check; are you using a pipe or a pty? To use a pipe, do:
(let ((process-connection-type nil))
(start-process ...))
There's also make-process in emacs 25, which has an arg for this.
--
-- Stephe
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, (continued)
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Clément Pit-Claudel, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Andreas Politz, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Clément Pit-Claudel, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Eli Zaretskii, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Andreas Politz, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Eli Zaretskii, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Andreas Politz, 2017/03/25
- Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Clément Pit-Claudel, 2017/03/25
Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?, Andreas Politz, 2017/03/25
Re: Why does adding a useless copy-sequence and discarding the result make my ELisp 40 times faster?,
Stephen Leake <=