3 ms·
Anything. What's annoying with Python though is how hard it is to just cache stuff in some dict or other data structure, since the GIL basically forces each re
by matsemann 5y ago
Anything.
What's annoying with Python though is how hard it is to just cache stuff in some dict or other data structure, since the GIL basically forces each request to have it's separate process (instead of separate thread). So non-trivial to share some state application wide without having to store it outside the application.
Of course a shared cache is sensible when there are multiple nodes running the application. But not everything needs a global cache either, or maybe the point of the cache was exactly to avoid a round trip to something else.