I don't know enough python to tell for sure, but this looks suspicious
to me. The printout below shows that a lot of time is spent on
JoinCategory._repr_ (1 underscore) in categories.py and
SymmetricFunctionAlgebra_classical.__repr__ (2 underscores), and I don
t understand why it should be that way. Is it normal? (it seems to get
worse with Big going bigger too)
Paul
S = SymmetricFunctions(QQ)
s = S.s()
p = S.p()
pp = tensor([p,p])
Big = 5
z = sum(sum(sum( tensor(( p(h[nu]),p(h[mu]) )) for mu in
partitions_list(i)) for nu in partitions_list(i)) for i in (1..Big))
%prun tmp = sum(z**i for i in range(Big-1))
2324784 17.543 0.000 22.437 0.000 category_types.py:227
(_repr_)
3985344 14.439 0.000 48.228 0.000 category.py:1246
(<genexpr>)
1328448 14.132 0.000 15.435 0.000 classical.py:331
(__repr__)
2159265 10.232 0.000 10.232 0.000 free_module.py:31
(__init__)
6676742 9.688 0.000 9.688 0.000 combinat.py:1202
(__hash__)
830552 9.644 0.000 10.135 0.000
{sage.structure.sage_object.have_same_parent}
664492/1 8.868 0.000 330.003 330.003 {sum}
332379/3 7.599 0.000 329.769 109.923 modules_with_basis.py:587
(__call__)
... a lot of other things ...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-combinat-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-combinat-devel?hl=en
-~----------~----~----~----~------~----~------~--~---