If you want something really fast you can look into sage-forker which simply 
starts a shell session, then forks when ever you ask for another session:

https://github.com/jasongrout/sage-forker

I have used it in the past and it worked quite well.  The biggest problem for 
me was that `sage -c` didn't take advantage of it so it was still terribly 
slow.  

I'm hoping that once the new ipython is installed it will be possible to start 
an ipython kernel (will all of sage loaded of course), and then connect to it 
for `sage -c` and for starting a new terminal session.  It's quite possible 
that I don't understand ipython though.  Perhaps someone more familiar with 
ipython can weigh in.

-Ivan

On Jun 28, 2012, at 8:26 AM, Peng Yu wrote:

> Hi,
> 
> sage command line usage is kind of slow. Is there a way to speed it up? 
> Thanks! 
> 
> ~/linux/test/sage/print$ time ./main.sage 
> xxx
> 
> real  0m3.265s
> user  0m1.221s
> sys   0m0.825s
> ~/linux/test/sage/print$ cat main.sage 
> #!/usr/bin/env sage
> 
> print "xxx"
> 
> #print factor(35)
> ~/linux/test/sage/print$ ll main.sage 
> -rwxr-xr-x 1 pengy staff 52 2012-06-28 01:24:54 main.sage
> 
> Regards,
> Peng
> 
> -- 
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to