python will store all strings in athene_pool and will never release them,so bigtext prcocessing bothered me recently.
I save article contents to redis,and fetch them from redisclient,and send them to http response.while serialization may will cause too much memory,is there any good idea to resolve things like this?
I wonder if django generated too many responses,how it releases them to keep memory low?
python will store all strings in athene_pool and will never release them,so bigtext prcocessing
Share
Python does not pool all strings, see Are strings pooled in Python.
For example, this 10K string is not pooled:
But a short 5 character string is pooled:
Ergo: you don’t need to worry about long strings being kept in memory longer than necessary.