Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16167
| Date | 2011-11-24 09:27 -0500 |
|---|---|
| From | Dave Angel <d@davea.name> |
| Subject | Re: Does py2app improves speed? |
| References | <0F07657D-9C87-417E-ADCB-150EB5040CAF@gmail.com> <CALwzidnD-hP-NQouJtfJLNLOsm7Sp5cZ_AA1cnLWcBUNKpv6AA@mail.gmail.com> <3F9F123B-4A94-46C7-9184-2D0EF7F3A27C@gmail.com> <4ECE48E3.6070701@davea.name> <432E5AEC-F306-4043-B28D-AF4213F0526E@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3006.1322144862.27778.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Does py2app improves speed? Dave Angel <d@davea.name> - 2011-11-24 09:27 -0500
Re: Does py2app improves speed? Alan Meyer <ameyer2@yahoo.com> - 2011-11-28 15:03 -0500
Re: Does py2app improves speed? Dave Angel <d@davea.name> - 2011-11-28 22:53 -0500
csiph-web