Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Does': 0.04; 'algorithms,': 0.07; 'pypy': 0.07; 'python': 0.08; 'bye.': 0.09; 'confuse': 0.09; 'subject:py2app': 0.09; 'us)': 0.09; 'am,': 0.12; 'c++': 0.12; 'processor': 0.15; 'structures': 0.15; '(eg.': 0.16; 'gonna': 0.16; 'optimizing': 0.16; 'py2app': 0.16; 'received:192.168.1.104': 0.16; 'cc:addr:python-list': 0.16; 'language': 0.17; 'wrote:': 0.18; '>>>': 0.18; '(perhaps': 0.18; 'rewrite': 0.18; 'yet.': 0.18; '(which': 0.19; 'this?': 0.19; 'memory': 0.21; "aren't": 0.21; "doesn't": 0.22; 'header:In-Reply- To:1': 0.22; 'topic.': 0.23; 'cc:2**0': 0.24; 'libraries': 0.24; 'code': 0.25; 'guess': 0.26; 'code.': 0.26; "i'm": 0.26; 'tools,': 0.28; 'cc:addr:python.org': 0.29; 'threads': 0.30; 'subject:?': 0.31; 'thanks': 0.31; 'developers': 0.32; 'header:User-Agent:1': 0.33; 'this.': 0.33; 'there': 0.33; 'rules': 0.34; 'probably': 0.34; 'someone': 0.34; 'certain': 0.34; 'things': 0.34; 'measure': 0.34; 'something': 0.35; 'project': 0.35; 'but': 0.37; 'list,': 0.37; 'received:192': 0.37; 'another': 0.37; 'think': 0.37; 'using': 0.38; 'several': 0.38; 'comments': 0.38; 'getting': 0.38; 'put': 0.38; 'ways': 0.39; 'else': 0.39; 'why': 0.39; 'missing': 0.40; 'received:192.168': 0.40; 'management': 0.60; 'within': 0.60; 'quick': 0.61; 'your': 0.61; 'efficient': 0.62; 'back': 0.62; 'subject': 0.62; 'choose': 0.62; 'it)': 0.67; 'header:Reply- To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'profile': 0.73; 'gain': 0.75; '09:02': 0.84; 'different.': 0.84; 'speed,': 0.84; 'here...': 0.91 Date: Thu, 24 Nov 2011 09:27:10 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: Ricardo Mansilla Subject: Re: Does py2app improves speed? References: <0F07657D-9C87-417E-ADCB-150EB5040CAF@gmail.com> <3F9F123B-4A94-46C7-9184-2D0EF7F3A27C@gmail.com> <4ECE48E3.6070701@davea.name> <432E5AEC-F306-4043-B28D-AF4213F0526E@gmail.com> In-Reply-To: <432E5AEC-F306-4043-B28D-AF4213F0526E@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:AOdmxd3BDmiDCEjL5Gb1mQpsGmJ+9kZ52G1Qs2bPXtY WLmt7P6HRsfMOSixuvq5H/WC9QHsFXK+xLpfllR1Pke+L5Qe6C QTG2Dnt88wM56J2LE3d08vmiigDLE0jDN4XsI5u5Fz+ui0gXpR HfttZnKNPmKuwQ5tSaSKC9iPNY7lBk89et7aamW+ePPBpbHunw WgY39UCuBOF+qv160VeVApnzyg4cr6scoIte39XCu7LB0yVrBG Es4HQRjXolFxVLsV1AM6KPXHJ1dqDUjOcQy6qZcZRMTE4ukC8m CdJrAGYKLnfsptvOx5+nk/Je22+MYQCoKTsWVJ17m8J/0GIGw= = Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322144862 news.xs4all.nl 6910 [2001:888:2000:d::a6]:55479 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16167 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 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