Hi,

I've been experimenting with sagemathcloud, and it is seems faster than my 
macbook (on something like factorial(10000) for example), which is great.

However I have one weird example that takes 134ms on my machine, and 5s on 
sagemathcloud (5 whole seconds!). I haven't worked out a minimal example 
yet (it's a complicated one...), but the results of %prun may be enough for 
some of you:

on my machine the first line is

 ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.111    0.111    0.149    0.149 
<ipython-input-1-0fa4c7b06789>:61(poly_kernel)

(poly_kernel is some function I wrote, involving groebner bases, here over 
ZZ)

on the cloud the first lines up until this one are:

ncalls  tottime  percall  cumtime  percall filename:lineno(function)
     1064    1.822    0.002    5.888    0.006 {map}
   428850    0.707    0.000    0.994    0.000 sre_parse.py:793(expand_template)
    46405    0.705    0.000    2.068    0.000 {method 'sub' of 
'_sre.SRE_Pattern' objects}
   428850    0.276    0.000    1.269    0.000 re.py:277(filter)
   857700    0.163    0.000    0.163    0.000 {method 'group' of 
'_sre.SRE_Match' objects}
   428852    0.124    0.000    0.124    0.000 {method 'join' of 'str' objects}
    46409    0.091    0.000    0.118    0.000 re.py:226(_compile)
    46405    0.056    0.000    2.242    0.000 re.py:144(sub)
        1    0.053    0.053    0.071    0.071 
<ipython-input-1-106a9daa0b7e>:113(poly_kernel)

I don't understand these functions at all, I have to say (re.py???)

This is in a jupyter notebook.

Thanks !

Pierre


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to