-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed as not planned
Labels
pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedperformancePerformance or resource usagePerformance or resource usagetopic-parsertype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
import time
class MemoryCheck(object):
@staticmethod
def insert_packages():
pass
def setup(self):
pass
def process(self):
pass
def exit(self):
pass
# copy total "class MemoryCheck(object)" for 512 times
if __name__ == "__main__":
while True:
time.sleep(10)
Copy the class in the preceding script for 512 times and verify the script.
[root@localhost ~]# python3 -V
Python 3.9.9
[root@localhost ~]# python3 test_512.py &
[4] 5715
[root@localhost ~]# pmap -x 5715|grep total
total kB 37256 16968 12176
[root@localhost ~]# python3 -V
Python 3.13.0b3+
[root@localhost ~]# python3 test_512.py &
[2] 2117463
[root@localhost ~]# pmap -x 2117463|grep total
total kB 1076668 31840 25384
python3.9 16968 KB
python3.13 31840KB, 2x memory difference
The difference in this RSS feed comes from this commit:
c5fc156
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Metadata
Metadata
Assignees
Labels
pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedperformancePerformance or resource usagePerformance or resource usagetopic-parsertype-featureA feature request or enhancementA feature request or enhancement