cdusold / DriveLink

A set of memory conserving python data structures.
MIT License
0 stars 0 forks source link

Make RAM aware? #6

Open cdusold opened 7 years ago

cdusold commented 7 years ago

Is it possible to monitor RAM and grow and shrink the number of on RAM pages accordingly?

Python tends to abstract out memory issues, so it's difficult to find out how much memory a structure is using. An alternative could be to expand while RAM usage is less than a percentage, and shrink if it get larger than a percentage. For defaults, 60% for growing to, and 80% for shrinking from would be a good start.