News for hackers. Stuff that matters.
Re:Functools – The Power of Higher-Order Functions in Python by zbentley on Friday July 09, 2021 @09:25AM (#27783427)
That's true, cache utilization declines as a function of your processing parallel (and in gunicorn/celery, your max-requests-per-process-before-suicide setting). Cached properties still can help a good deal though, especially when coupled with a) careful prefork initialization of cached data and b) even more careful use of multiprocessing's little-known shared memory interface which really does allow caches to be shared, without read locks, between multiple processes.

There are no comments on this comment yet.