[shedskin] Technical Discovery: speeding up python again

17 views
Skip to first unread message

Mark Dufour

unread,
Jul 7, 2011, 4:46:08 AM7/7/11
to shedskin-discuss
hi guys,

I have no time to look into this at the moment, and perhaps it's numpy-only, so shedskin cannot be used here:

http://technicaldiscovery.blogspot.com/2011/07/speeding-up-python-again.html

so in case anyone here would like to look into a shedskin version..

note that nested lists compiled with shedskin can be a lot faster than numpy arrays when indexing.


thanks,
mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Brent Pedersen

unread,
Jul 8, 2011, 2:42:49 PM7/8/11
to shedskin...@googlegroups.com
I just had a quick look.
python on my machine takes 191.5 seconds on this:
https://raw.github.com/scipy/speed/master/laplace/laplace2.py

after i remove the last 4 lines (pickling stuff) shedskin handles it
unchanged and
the executable runs in 5.22 seconds.

> --
> You received this message because you are subscribed to the Google Groups
> "shedskin-discuss" group.
> To post to this group, send email to shedskin...@googlegroups.com.
> To unsubscribe from this group, send email to
> shedskin-discu...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/shedskin-discuss?hl=en.
>

Mark Dufour

unread,
Jul 8, 2011, 5:00:37 PM7/8/11
to shedskin...@googlegroups.com
On Fri, Jul 8, 2011 at 8:42 PM, Brent Pedersen <bped...@gmail.com> wrote:
I just had a quick look.
python on my machine takes 191.5 seconds on this:
https://raw.github.com/scipy/speed/master/laplace/laplace2.py


thanks! I didn't realize the program was this simple..

timings here:

cpython: 255s
shedskin: 5.42s
shedskin -b: 2.5s

thanks,
mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Tony Veijalainen

unread,
Jul 27, 2011, 2:29:43 PM7/27/11
to shedskin...@googlegroups.com
Interestingly with this Core2 T5600 @ 1.83 GHz, speed with shedskin 0.8 seem to be irrelevant for -b option:
shedskin: 5.375 s
shedskin -b: 5.344 s
Python2.72: 267.281 s
WebRep
Kokonaisluokitus
 
Reply all
Reply to author
Forward
0 new messages