Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'languages.': 0.04; 'subject:Python': 0.06; 'pypy': 0.07; 'converted': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'language.': 0.14; 'programs.': 0.14; 'python;': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'situation.': 0.16; 'thread,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'java': 0.24; 'question': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'code': 0.31; 'another': 0.32; 'noticed': 0.34; 'but': 0.35; 'really': 0.36; 'replies': 0.36; 'thanks': 0.36; 'should': 0.36; 'application': 0.37; 'question,': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'between': 0.67; 'inherent': 0.84; 'overlooked': 0.84; 'penalty': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: Python performance Date: Sat, 08 Mar 2014 13:56:04 -0500 References: <290bb6ed-a17e-45e3-8ff7-e58bb50e66a6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <290bb6ed-a17e-45e3-8ff7-e58bb50e66a6@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394304975 news.xs4all.nl 2919 [2001:888:2000:d::a6]:42826 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68049 On 3/8/14 7:53 AM, JCosta wrote: > I did some work in c# and java and I converted some application to Python; I noticed Python is much slower than the other languages. > > Is this normal ? > Thanks > Your question, and the replies so far in this thread, have overlooked the difference between language and implementation. Python as a language has no inherent speed. Your question is really about CPython, the reference and most-common implementation of the language. It interprets virtual-machine bytecode, and so will pay a penalty for compute-bound code. But PyPy is another implementation of Python. It uses a JIT to produce native code automatically, and can impressively speed up the execution of Python programs. You should give it a try to see if it will help in your situation. -- Ned Batchelder, http://nedbatchelder.com