#10295: Upgrade and optimize pexpect
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.10
Component: interfaces | Resolution:
Keywords: pexpect upgrade | Merged in:
Authors: François Bissey, | Reviewers: Jeroen Demeyer
Bill Page, Jeroen Demeyer | Work issues:
Report Upstream: Reported | Commit:
upstream. No feedback yet. | f0523e41eb491c0589c230973229cfeb2123dccd
Branch: | Stopgaps:
u/jdemeyer/pexpect3.3 |
Dependencies: #19671 |
-------------------------------------+-------------------------------------
Comment (by leif):
Replying to [comment:153 jdemeyer]:
> Is it really a problem if the CPU goes up while the total time goes
down?
As always, ''it depends''.
Do we burn more carbon that way?
More seriously, in case the potential cpu time is wasted otherwise,
perhaps not (''wall time'' then matters; but even on a battery-powered
notebook, the answer might yet be different). But if it's not, i.e., if
other processes suffer from getting less, it does of course. So it mainly
depends on the user, or rather the usage of the machine Sage is running on
(and hence potentially many users).
[[BR]]
Replying late to [comment:130 jdemeyer]:
> I just noticed that `pexpect` uses a read buffer of only 2000 bytes by
default.
>
> WTF??? Does `pexpect` upstream really ''want'' things to be slow?
Think of pexpect's purpose; not counting newlines, 2000 characters is 80
columns by 25 lines, so pretty reasonable even with ASCII art output
(well, perhaps twice that, but not vastly more.).
In the same sense, benchmarking with `gp("2^2^22")` seems hardly
appropriate, IMHO.
Latency matters, more than throughput. (And in a multitasking
environment, overall resource usage.)
--
Ticket URL: <http://trac.sagemath.org/ticket/10295#comment:155>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.