I need to optimize the RAM usage of my application. PLEASE spare me the lectures telling me I shouldn\'t care about memory when coding Python. I have a memory problem be
Use shelve or a database to store the data instead of an in-memory dict.