Python global variable release?
大家讲道理
大家讲道理 2017-05-24 11:35:10
0
2
614

Global variables need to be used in the project to store a large amount of data. This project will generally not be stopped, so this part will not be recycled. I have been tracking it for a while now, and I feel that this part of the memory is occupied, which greatly affects subsequent operations.
So I'm wondering if there is one that can be released at every point in time.

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
習慣沉默

Depending on the situation, it will be deleted directly at the critical moment.

仅有的幸福

Del when you are not using it, and then in production, a good way is to use redis storage

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!