Dear Jerome,

On Jun 3, 2:28 pm, "[email protected]"
<[email protected]> wrote:
> Hi, in sage 4.0 there's new code to compare subgroups which fixes
> problems I had 
> earlier;http://groups.google.com/group/sage-support/browse_thread/thread/5337...

Good. But bad that it became slower (actually I expected it to be
faster).

Using "prun" on your two functions, I found that in both cases the
most time is spent with (1) pexpect and (2) regular expressions.

The difference is: genSub2(4) requires nearly 1,290,000 interactions
with pexpect and compilations of regular expressions, while genSub1(4)
can do with only 151,000 pexpect interactions and 1,405,000 regular
expressions (hence, *more* regular expressions, but the total time for
the regular expressions is 10 times less).

I will try and see how this can be improved. Thank you for your
examples!

Best regards,
     Simon

--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to