+1 regardless of the memory leak, just compute your 10^2 character values once and for all....
On Thursday, February 13, 2014 5:30:07 PM UTC, Dima Pasechnik wrote: > > On 2014-02-13, Dima Pasechnik <[email protected] <javascript:>> wrote: > > On 2014-02-13, Tobias Weich <[email protected] <javascript:>> > wrote: > >> > >> > >> Am Donnerstag, 13. Februar 2014 17:49:54 UTC+1 schrieb Volker Braun: > >>> > >>> The following seems to run pretty much forever without running out of > >>> memory: > >>> > >>> for k in range(100000): > >>> g = G.random_element() > >>> g^k > >>> > >> > >> Ok I tried to extract the essentail part and finally found an example > that > >> reproduced the crash. > >> The following example crashed on my local sage installation (Version > 5.10) > >> > >> G=DihedralGroup(6) > >> for k in range(10000): > >> for kkk in range(6): > >> c=G.character(G.character_table()[kkk]) > >> for g in G.list(): > >> for kk in range(10): > >> x=c(g^kk) > >> > >> with the following error message: > > OK, good, this looks promising; I see GAP subprocess slowly growing in > > memory usage (with Sage 6.1.1). > > Having said that, the 1st thing I would try is to move the computation > of c ouside the k-loop - compute the 6 characters of G first and reuse > them, instead of computing them in the loop. > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
