Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Building CPython Date: Thu, 14 May 2015 19:29:40 +0300 Organization: A noiseless patient Spider Lines: 17 Message-ID: <874mnfunpn.fsf@elektro.pacujo.net> References: <7JN4x.37133$Q41.15375@fx25.am4> <6w35x.645690$I97.19867@fx31.am4> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="8880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yfuu1rlHPG6+3Un5+pO3w" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:0EaiQd9OxhCXLDFhiiVCQX0QtCk= sha1:VkeCRZorAvRmtL1nxPCNbDH/H40= Xref: csiph.com comp.lang.python:90611 BartC : > That's a shame because I wanted to tinker with the main dispatcher > loop to try and find out what exactly is making it slow. Nothing that > seems obvious at first sight. My guess is the main culprit is attribute lookup in two ways: * Each object attribute reference involves a dictionary lookup. * Each method call involves *two* dictionary lookups plus an object creation. Tell us what you find out. Marko