A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-September/128280.html below:

[Python-Dev] SEEK_* constants in io and os

[Python-Dev] SEEK_* constants in io and os [Python-Dev] SEEK_* constants in io and osEli Bendersky eliben at gmail.com
Mon Sep 2 18:02:00 CEST 2013
On Mon, Sep 2, 2013 at 8:48 AM, Victor Stinner <victor.stinner at gmail.com>wrote:

> 2013/9/2 Eli Bendersky <eliben at gmail.com>:
> > Yes, now I see a 500 usec difference timed within the Python script. When
> > timing the whole execution of Python: (...)
>
> Can you please provide the list of imported modules by:
> python -c 'import sys; print(sys.modules)'
>
> For python with default options and for python with -S (no site
> module) options? And also with your patch?
>
> Python should be fast to write "hello world" (or "python -c pass),
> it's a dummy but common benchmark (to compare Python to other VM /
> other programming languages).
>

The sorted list for both default and -S (they're identical) is
http://pastebin.com/4vzSMCu7 - there are 55 entries there, including things
like itertools, heapq, functools and collections. With my patch, enum is
also added (which makes sense since os is in the list). So the 0.5ms
increase for the 34ms runtime kind-of makes sense.

Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130902/d7f87272/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4