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.
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.