In order to add more tools to my Python arsenal, I've started work on a pet project - a personal time management app, Thyme.
Currently, the app consists of two processes: Every 500ms, a separate process gets the focused window via win32ui
, and writes it into a SQLite DB via SQLAlchemy; while the main process launches a CherryPy web server which handles the app's UI.
However, the two Python processes have a total memory footprint of about ~30MB, which I would like to reduce. I know that one way to do this is to use multithreading -- but I really can't tell if it's even worth opening that can of worms. Would my use case be appropriate for the multithreaded approach?