Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90294
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.042 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'subject:not': 0.03; 'variables': 0.07; 'dict': 0.16; 'reminded': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'stack': 0.19; '(the': 0.22; 'mention': 0.26; 'second': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'skip:p 30': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'actual': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'object,': 0.36; 'subject:?': 0.36; 'turn': 0.37; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'first': 0.61; '"fast"': 0.84; '2015': 0.84; 'otten': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=G9ohpTW9niaYJk3cy1mdjPz4H/tdxkuN3W4/Bn5fI1k=; b=IqzK1qQG/vH/xbdhEoV8Mjl/rqMwsSFRM1IP4FtzBBXL16eJKurdqopmhNKdhRvgIo 4uWPcgGah3rweUC6kIhj+k5BE40bXvK8IX3+krBcIHkaKlCITysLls8/OrNKfsAnnCJ2 Jh4S898Yxxqz13+tZ5AyufWUNvL2k49G8Ia2Lx/L0AgagX0XCMyRVhqhYsaMKcF3MGFg VS2P+gMVmjLbhQmlXvTht1gMJelcODzRZgYt6T2WjjOxry6bvAqEKA1DzxO3SU4KXNSD 48eqFRoKZ2VMwrgIp8JdOFOVWqsmbnB9uTKzMp95uehA8/rH0EDH1u/Dupg3Ja/iKetM 2UUw== |
| X-Received | by 10.50.225.35 with SMTP id rh3mr9729882igc.29.1431275164857; Sun, 10 May 2015 09:26:04 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <mio04q$6gk$1@ger.gmane.org> |
| References | <554f2bb6$0$13011$c3e8da3$5496439d@news.astraweb.com> <mailman.304.1431254634.12865.python-list@python.org> <554f700f$0$13011$c3e8da3$5496439d@news.astraweb.com> <mio04q$6gk$1@ger.gmane.org> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Sun, 10 May 2015 10:25:24 -0600 |
| Subject | Re: Calling a function is faster than not calling it? |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.315.1431275173.12865.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1431275173 news.xs4all.nl 2970 [2001:888:2000:d::a6]:48486 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:90294 |
Show key headers only | View raw
On Sun, May 10, 2015 at 10:14 AM, Peter Otten <__peter__@web.de> wrote: > When there was an actual speed-up I also had a look at > PyEval_GetGlobals/Locals() which in turn call > > PyEval_GetFrame() > > and > > PyEvalPyFrame_FastToLocalsWithError() > > whatever these do. (The first function reminded me of sys._getframe() hence > the mention of stack inspection) Based on the names, I surmise that the first one gets the top stack frame object, and that the second one extracts the "fast" local variables from the frame object and builds a dict of them for use by eval.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Calling a function is faster than not calling it? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-10 19:58 +1000
Re: Calling a function is faster than not calling it? Christian Gollwitzer <auriocus@gmx.de> - 2015-05-10 12:34 +0200
Re: Calling a function is faster than not calling it? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 01:04 +1000
Re: Calling a function is faster than not calling it? Peter Otten <__peter__@web.de> - 2015-05-10 12:43 +0200
Re: Calling a function is faster than not calling it? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 00:49 +1000
Re: Calling a function is faster than not calling it? Peter Otten <__peter__@web.de> - 2015-05-10 18:14 +0200
Re: Calling a function is faster than not calling it? Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-10 10:25 -0600
Re: Calling a function is faster than not calling it? Terry Reedy <tjreedy@udel.edu> - 2015-05-10 12:37 -0400
Re: Calling a function is faster than not calling it? BartC <bc@freeuk.com> - 2015-05-10 22:08 +0100
Re: Calling a function is faster than not calling it? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 13:58 +1000
Re: Calling a function is faster than not calling it? BartC <bc@freeuk.com> - 2015-05-11 10:50 +0100
Re: Calling a function is faster than not calling it? Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-11 09:12 -0500
Re: Calling a function is faster than not calling it? BartC <bc@freeuk.com> - 2015-05-11 16:01 +0100
Re: Calling a function is faster than not calling it? Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-11 10:13 -0500
Re: Calling a function is faster than not calling it? Tony the Tiger <tony@tiger.invalid> - 2015-05-15 01:35 +0000
Re: Calling a function is faster than not calling it? Stefan Behnel <stefan_ml@behnel.de> - 2015-05-11 08:11 +0200
Re: Calling a function is faster than not calling it? Piet van Oostrum <piet@vanoostrum.org> - 2015-06-22 23:49 +0200
csiph-web