On 11/24/2011 09:02 AM, Ricardo Mansilla wrote:
Most of méthods for improving the speed are related to efficient memory 
management and using specific structures for a specific tasks... But i have 
already optimized my code (which is very short actually) following all these 
rules and it is very slow yet.
Do you think there is another way to do This? Probably i'm missing something 
here...

On 24/11/2011, at 07:38, Dave Angel<d...@davea.name>  wrote:

On 11/24/2011 08:26 AM, Ricardo Mansilla wrote:
Well, that's sad... I think Im gonna end getting back to C++ for This.  But 
anyway, thanks a lot for the quick answer...
Bye.
Just because Py2app doesn't improve speed doesn't mean there aren't other ways 
to gain speed, while still using the Python language for all or most of the 
app. There have been lots of threads on the topic.

--

DaveA


(Please don't top-post. If you put your comments ahead of the part you're quoting, you confuse us)

Several ways to speed up code.

1) use language features to best advantage
2) use 3rd party libraries that do certain things well
3) use best algorithms, subject to #1 and #2
4) have someone else review the code (perhaps on the list, perhaps within your own organization)
5) measure  (eg. profile it)
6) use optimizing tools, such as pypy or Cython.
7) rewrite parts of it in another language
8) get a faster processor
9) rewrite it all in another language

It takes experience to choose between these, and each project is different. But even the most experienced developers will frequently guess entirely wrong where the bottleneck is, which is why you measure if you care.


--

DaveA
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to