Python Concurrency Decorators
github.com
Python Concurrency Decorators
1–10 of 51 posts
Re: Python Concurrency Decorators
#2This reminds me of AppEngine's ndb tasklets.
Re: Python Concurrency Decorators
#3Re: Python Concurrency Decorators
#4I love developing in Flask cause of the way decorators written.
Re: Python Concurrency Decorators
#5this is such a good idea! the @synchronized decorator to collect the parallelized task at the end of a parent call is very very smart & simple.
Re: Python Concurrency Decorators
#6Let me sum up my feelings towards this: neat!
Re: Python Concurrency Decorators
#7Then I can easily parallelize existing code without touching anything?
Re: Python Concurrency Decorators
#8A couple of things offhand:
- It has Python 2 and 3 support
- It's a wrapper for the Python built-in "multiprocessing" library
- It spreads out work over all cores (so the abstraction hides the ability to control the pool)
Seems like a great way to get your feet wet with multiprocessing in Python, but it likely has limited use in production...although certain infrastructures like resource limited containers might be able to accommodate it.
Re: Python Concurrency Decorators
#9Of note is that the version of deco on PyPI[1] (0.2) is incompatible with Python 3.
There have been few commits to fix compatibility, but it's not there yet.
Re: Python Concurrency Decorators
#10Another page you might be interested in bookmarking:
https://wiki.python.org/moin/PythonDecoratorLibrary
A similar decorator to thread function calls for concurrency:
https://wiki.python.org/moin/PythonDecoratorLibrary#Lazy_Thu...