[issue23253] Delay-load ShellExecute[AW] in os.startfile

2015-01-17 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
assignee:  - steve.dower
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23253] Delay-load ShellExecute[AW] in os.startfile

2015-01-17 Thread Steve Dower

Steve Dower added the comment:

Attached a patch.

Comparing the time for python.exe -c '0' with Powershell's Measure-Command 
tool, it looks like there's a 3-4ms (~8-10%) improvement in startup time too. 
That's not at all robust, but it's certainly no worse. (I'm not surprised - 
shell32.dll is a horrendously big dependency and we're better off without it.)

--
keywords: +patch
Added file: http://bugs.python.org/file37743/23253.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23253] Delay-load ShellExecute[AW] in os.startfile

2015-01-16 Thread Steve Dower

New submission from Steve Dower:

Currently, pythonXY.dll has a dependency on shell32.dll solely for the 
os.startfile (Modules/posixmodule.c) function. This is quite a heavy dependency 
that many would rather not have to load (e.g. lightweight server 
configurations).

It would be nice to delay load the DLL and fail the operation if it is not 
available.

(This is as much a reminder for myself as anything else, but if someone wants 
to do it then feel free.)

--
components: Windows
messages: 234151
nosy: steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Delay-load ShellExecute[AW] in os.startfile
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com