
Super Fast Python
@SuperFastPython
Followers
522
Following
32
Media
2K
Statuses
4K
Making python developers awesome at concurrency. #python #threading #multiprocessing #asyncio
Joined October 2021
Discover how to execute Python loops using all CPU cores. Book: "Parallel Loops in Python".
0
0
5
Tip: Ensure tasks back off or retry with a delay to avoid continuous state changes that cause livelocks. #Python #Concurrency
0
0
0
Tip: Use "threading.RLock" if a thread needs to re-acquire the same lock, avoiding self-deadlock scenarios. #Python #Concurrency
0
0
0
Tip: Prefer higher-level concurrency primitives like "Semaphore" or "Condition" when they fit your use case, as they reduce the need for manual lock management. #Python #Concurrency
0
0
0
Using Multiprocessing With Numpy Results in Worse Performance. #Python #Concurrency.
superfastpython.com
You can parallelize numpy programs using multiprocessing. It is likely that using process-based concurrency via multiprocessing to parallelize a numpy program will result in worse overall performan...
0
0
0
Tip: Limit the scope of locks to only critical sections, reducing the chance of blocking other threads unnecessarily. #Python #Concurrency
0
0
0
Tip: Use Python's "timeout" parameter when acquiring locks to detect and recover from potential deadlocks. #Python #Concurrency
0
0
0