#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:156 jdemeyer]:
 > Replying to [comment:155 leif]:
 > > In the same sense, benchmarking with `gp("2^2^22")` seems hardly
 appropriate, IMHO.
 >
 > Large outputs do actually happen in Sage. It's not so crazy.

 Yep, but certainly not the typical usage scenario of pexpect, so I
 wouldn't blame upstream for their default buffer size.

 On the other hand, often the interaction of Sage with pexpect-driven
 programs looks more like a human one, where lots of variables get set with
 short commands, to finally get a (typically relatively short) answer.
 Mainly in toy examples communication overhead dominates computation time
 (unless latency in a longer dialogue is really bad, as we experienced with
 some Ubuntu kernels a while ago).

 [[BR]]

 I'm not very worried about the increased CPU time (yet ;-) ); it's just
 that we shouldn't exclusively focus on bare throughput.

 If the number and/or size of objects passed is huge, it's probably more
 worth thinking of other solutions.

--
Ticket URL: <http://trac.sagemath.org/ticket/10295#comment:158>
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.

Reply via email to