Martin <gzl...@googlemail.com> added the comment:

> Has anyone had a chance to try this patch on Windows?  Martin?  I'm
> hoping that it doesn't impose a startup cost in the default
> no-randomization cost, and that any startup cost in the -R case is
> acceptable.

Just tested as requested. Is the patch against 3.1 for a reason? Can't
really be compared to earlier results, but get enough weird outliers
that that may not be useful anyway. Also needed the following change:

-+        chunk = Py_MIN(size, INT_MAX);
++        chunk = size > INT_MAX ? INT_MAX : size;

Summary, looks like extra work in the default case is avoided and
isn't crippling otherwise, though there were a couple of very odd runs
not presented probably due to other disk access.

Vanilla:

>timeit PCbuild\python.exe -c "import sys;print(sys.version)"
3.1.4+ (default, Jan 30 2012, 22:38:52) [MSC v.1500 32 bit (Intel)]

Version Number:   Windows NT 5.1 (Build 2600)
Exit Time:        10:42 pm, Monday, January 30 2012
Elapsed Time:     0:00:00.218
Process Time:     0:00:00.187
System Calls:     3974
Context Switches: 574
Page Faults:      1696
Bytes Read:       480331
Bytes Written:    0
Bytes Other:      190860


Patched:

>timeit PCbuild\python.exe -c "import sys;print(sys.version)"
3.1.4+ (default, Jan 30 2012, 22:55:06) [MSC v.1500 32 bit (Intel)]

Version Number:   Windows NT 5.1 (Build 2600)
Exit Time:        10:55 pm, Monday, January 30 2012
Elapsed Time:     0:00:00.218
Process Time:     0:00:00.187
System Calls:     3560
Context Switches: 441
Page Faults:      1660
Bytes Read:       461956
Bytes Written:    0
Bytes Other:      24926


>timeit PCbuild\python.exe -Rc "import sys;print(sys.version)"
3.1.4+ (default, Jan 30 2012, 22:55:06) [MSC v.1500 32 bit (Intel)]

Version Number:   Windows NT 5.1 (Build 2600)
Exit Time:        11:05 pm, Monday, January 30 2012
Elapsed Time:     0:00:00.249
Process Time:     0:00:00.234
System Calls:     3959
Context Switches: 483
Page Faults:      1847
Bytes Read:       892464
Bytes Written:    0
Bytes Other:      27090

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13703>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to