Message152362
> 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 |
|
Date |
User |
Action |
Args |
2012-01-30 23:41:45 | gz | set | recipients:
+ gz, lemburg, gvanrossum, tim.peters, loewis, barry, georg.brandl, terry.reedy, gregory.p.smith, jcea, mark.dickinson, pitrou, vstinner, christian.heimes, benjamin.peterson, eric.araujo, grahamd, Arfrever, v+python, alex, zbysz, skrah, dmalcolm, neologix, Arach, Mark.Shannon, eric.snow, Zhiping.Deng, Huzaifa.Sidhpurwala, Jim.Jewett, PaulMcMillan, fx5, skorgu |
2012-01-30 23:41:44 | gz | set | messageid: <1327966904.94.0.273785927847.issue13703@psf.upfronthosting.co.za> |
2012-01-30 23:41:44 | gz | link | issue13703 messages |
2012-01-30 23:41:43 | gz | create | |
|