Hi There, Runsnake (thanks Nicolas !) just told me that some code spent 90% of its time constructing families. The reason is that to construct elements of a CombinatorialFreeModule the code goes through self.basis() and that the method basis is *not* cached. Since families doesn't have UniqueRepresentation the initialisation code is executed many times... I know that it should written using monomial, but the original writer of the code didn't because the example always construct element using the basis. I think that unless you want to achieve ultimate speed this is a perfectly reasonable ways to write it. So the question is:
Is there any reason why not having CFM.basis() cached ? Note adding the cache still passes the tests ! Cheers, Florent -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.