Skip to content

Instantly share code, notes, and snippets.

View yuangezhizao's full-sized avatar
🤔
Vegetable - Verified by GitHub

远哥制造 yuangezhizao

🤔
Vegetable - Verified by GitHub
View GitHub Profile
@yuangezhizao
yuangezhizao / test_mulitprocessing_shared_memory.py
Created July 8, 2022 15:43 — forked from rvprasad/test_mulitprocessing_shared_memory.py
Explores performance of shared memory support available in multiprocessing library in Python 3.8.
# Python -- v3.8
from multiprocessing import Process, Queue, managers
import time
def worker(id, data, queue, *args):
tmp1 = time.time()
if args:
for i in range(args[0], args[1]):