The Following User Says Thank You to Khertan For This Useful Post: | ||
![]() |
2010-05-07
, 00:34
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#62
|
<lcuk> supposing i have written a simple app in python <lcuk> it cleanly uses pyqt api and has class based structure <lcuk> is it possible to examine the python execution model and produce a c++ representation of that code <lcuk> for clean compilation and transfer to a regular fast c++ binary <janneg> lcuk: there's shedskin <lcuk> ? <lcuk> an app? <janneg> it probably can't handle pyqt <lcuk> :D <lcuk> well that can be examined <janneg> it's an restricted python to C++ compiler <lcuk> ive got code here that needs to be native <lcuk> i can grep the resulting stuff and fix it <lcuk> but i want the basic structure to come from it <lcuk> nice, thanks for the tip jenn <lcuk> janneg, <janneg> http://shed-skin.blogspot.com/ <lcuk> yeah im on there now <lcuk> thats a really good tip :) im gonna post it on the python speedups page <lcuk> its not a solution for everything, but if it saves the "getting started" part of converting a slow branch <lcuk> it will be worth it
The Following 7 Users Say Thank You to lcuk For This Useful Post: | ||
![]() |
2010-05-18
, 20:31
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#63
|
ok, just had a quick conversation on #maemo irc after writing something in pyqt
i wanted to know how to convert the basic code to c
how cool is that
![]() |
2010-05-18
, 20:53
|
Posts: 999 |
Thanked: 1,117 times |
Joined on Dec 2009
@ earth?
|
#64
|
![]() |
2010-05-18
, 21:06
|
Posts: 282 |
Thanked: 337 times |
Joined on Dec 2009
@ Austin, TX, USA
|
#65
|
![]() |
2010-05-20
, 13:27
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#66
|
The Following 5 Users Say Thank You to epage For This Useful Post: | ||
![]() |
2010-05-20
, 14:11
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#67
|
I've tried to collect the information gathered in this thread into a wikipage. Feel free to fill in what I missed
http://wiki.maemo.org/Performance_Co...or_Python_Apps
Did you have any luck with this? I tried using this myself a few weeks ago and ran into some roadblocks specifically with the PyQt modules. I'd like to hear if you had success on this front.
Edit: Seems that there's a new version 0.4 recently released!
The Following User Says Thank You to lcuk For This Useful Post: | ||
![]() |
2010-05-21
, 12:23
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#68
|
![]() |
2010-05-21
, 12:28
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#69
|
![]() |
2010-11-17
, 06:06
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#70
|
a=a+b*c
>>> from simple_module import func1, func2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: ./simple_module.so: cannot open shared object file: No such file or directory
> ls -l -rw-r--r-- 1 root root 1023 Nov 17 06:45 Makefile -rw-r--r-- 1 root root 2855 Nov 17 06:45 simple_module.cpp -rw-r--r-- 1 root root 441 Nov 17 06:45 simple_module.hpp -rw-r--r-- 1 root root 188 Nov 17 06:45 simple_module.py -rwxr-xr-x 1 root root 1491856 Nov 17 06:46 simple_module.so
![]() |
Tags |
performance, python |
Thread Tools | |
|
http://khertan.net/article_view.php?...%20in%20python
Yes i know the code isn't really well written ... i ll refactor it later.
Benoît HERVIER, Khertan
KhtEditor - Sdist_Maemo - Khweeteur - PyPackager - KhtSimpleText - KhtNotes - KhtBMA - Wleux - and more ...
Last edited by Khertan; 2010-05-05 at 07:27.