On 9/13/12 3:09 PM, Jason Grout wrote:
> On 9/13/12 2:45 PM, Niles Johnson wrote:
>> Lastly, there's a heartwarming example of the benefits of open
>> development here: I made all of the Sage code for my animation public,
>> and I deliberately tried to use open-source software for the entire
>> project so that someone else could easily use the code I wrote. I had
>> never met Ihechukwu or Bruce when they started working on this, nor did
>> I know anything about this modular fibration. But I'm thrilled with
>> their work! I certainly couldn't predict this, and this outcome makes
>> me even happier that I decided to make the source public :)
I looked at the code some more, and it looked like there was *lots* of
potential for speeding it up. I first added some imports from the
python math library, which sped it up by a factor of 5-10 on one case
[1]. Then I converted the fib2_param function to use fast_callable (in
a really simple way...) [2]. That sped it up by another factor of 2-4
or so.
You can see the results here:
http://aleph.sagemath.org/?q=530d5d16-a57d-4cef-9eab-7b5dad6445c1
Comment or uncomment the load statements at the top to see the difference.
I put my changes up here:
https://github.com/jasongrout/hopf_fibrations
I think there is still a lot of room for speeding this up more, if
someone wanted a fun project.
Thanks,
Jason
[1]
https://github.com/jasongrout/hopf_fibrations/commit/a8bcb7df4455389fc815a4832041028d6ee920bb
[2]
https://github.com/jasongrout/hopf_fibrations/commit/0bd6ccf381764cf3126c3c93e8de82c58141a0bf