ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-dev
python-dev
Re: [Python-Dev] Reworking the GIL
by Antoine Pitrou other posts by this author
Nov 7 2009 11:56AM messages near this date
Re: [Python-Dev] Reworking the GIL | Re: [Python-Dev] Reworking the GIL
Hello again,

>  It shows that, on my platform for this specific benchmark:
>        *  newgil manage to leverage a significant amount of parallelism
>          (1.7) where python 3.1 does not (3.1 is 80% slower)

I think you are mistaken:

-j0 (main thread only)
newgil: 47.483s, 47.605s, 47.512s
-j4 (4 consumer threads, main thread producing/waiting)
newgil: 48.428s, 49.217s

The runtimes are actually the same, so newgil doesn't leverage anything.
However, it doesn't degrade performance like 2.x/3.1 does :-)

>        * newgil as a small impact on non multi-threaded execution
>          (~1-2%) [may be worth investigating]

It goes from very slightly slower to very slightly faster and it is
likely to be caused by variations in generated output from the compiler.

>        * 3.1 is more than 2 times slower than python 2.6 on this
>          benchmark

That's the most worrying outcome I'd say. Are you sure the benchmark
really does the same thing? Under 2.6, you should add re.UNICODE to the
regular expression flags so as to match the 3.x semantics.

>  [if I understood correctly in 3.x regex release the GIL].

Unless I've missed something it doesn't, no.
This could be a separate opportunity for optimization, if someone wants
to take a look at it.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@[...].org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev-ml%40maillist.acti
vestate.com
Thread:
Antoine Pitrou
Stefan Ring
Stefan Ring
Nick Coghlan
Antoine Pitrou
Antoine Pitrou
Antoine Pitrou
Baptiste Lepilleur
Antoine Pitrou
Baptiste Lepilleur
Guido van Rossum
Antoine Pitrou
Guido van Rossum
Baptiste Lepilleur
Antoine Pitrou
Antoine Pitrou
Sturla Molden
John Arbash Meinel
Antoine Pitrou
Antoine Pitrou
Jeffrey Yasskin
martin
Antoine Pitrou
martin
Gregory P. Smith
Antoine Pitrou
Christian Heimes
Christian Heimes
Brett Cannon

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved