From sweskman at gmail.com Thu Nov 27 22:38:32 2014 From: sweskman at gmail.com (=?UTF-8?B?S3Jpc3Rqw6FuIFZhbHVyIErDs25zc29u?=) Date: Thu, 27 Nov 2014 21:38:32 +0000 Subject: [Stackless] PythonPlus Message-ID: Hey, So, I started this little project, PythonPlus: https://bitbucket.org/krisvale/pythonplus Basically, I wanted to get out of my system some of the little changes that we did at CCP to the python 2.7 thingie. PythonPlus is the cpython repo, with some stuff added to the 2.7 branch. At the moment, it is all threading stuff, designed at enhancing the responsiveness of 2.7 when working with threads. 1) the locking primitives now all timeout, as they do in 2.x 2) there is a native RLock. 3) there is a custom GIL which makes CPU threads share load fairly and ensures swift responsiveness for IO threads. 4) there is a native Condition impelentation, greatly reducing latency for applications using Condition variables for signalling. Previously, threading.Condition was pure python with a lot of GIL thrashing, corner cases, and overhead. If you're interested, take a look. A downside is that effectively support is dropped for anything not Win32 or pthreads. If there is a 2.8 project anywhere out there, then these things could be a nice candidate. Take a look at Tools/plus/giltest.py for code that excercises the gil, io threads, and condition variables. Cheers, Kristj?n -------------- next part -------------- An HTML attachment was scrubbed... URL: