[Python-Dev] SEEK_* constants in io and os (original) (raw)
Eli Bendersky eliben at gmail.com
Mon Sep 2 18:02:00 CEST 2013
- Previous message: [Python-Dev] SEEK_* constants in io and os
- Next message: [Python-Dev] SEEK_* constants in io and os
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: [Python-Dev] SEEK_* constants in io and os
- Next message: [Python-Dev] SEEK_* constants in io and os
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]