I recently decided to make some OS X services which use sage e.g. to simplify
an expression. So that I can select some text, and simplify it in place. This
is ridiculously easy to do with Automator and sage -c, but the problem is that
it's unbearably slow. Part of it may be Automator, but if I run
time ./sage -c '1+2'
in a terminal it never takes less than 5 seconds real time which is clearly
unacceptable for this purpose. I do have moderate load on my machine, but CPU
time is also high. The result below is typical.
real 0m5.349s
user 0m2.876s
sys 0m1.747s
This is on OS X 10.6 where we have segfaulting problems, but I don't believe
those come into play here. Is this typical of what other people experience?
I understand that there are lots of things that need to be done to start sage,
and that it wasn't really built to do things this simple, but it would be nice
if there were something faster.
Is there a way to query an insecure server running locally (without logging in
and creating a notebook) so that I can avoid starting up a new interpreter(s)
every time? I tried to find the code that interact uses (since I assume it
must do something similar), but didn't have any luck. If I recall there was
talk of adding something similar a while ago.
Thanks,
Ivan
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org