Ok, python 2.5 has
absolutely no good examples of how to set up a thread pool. Google and
friends are suspiciously silent on this. It could be because there's
almost no time savings on win32 when using threads. Or it could be
because threading is already necessarily more complicated than it needs
to be.
Maybe I just need to subprocess exec a new python running my scripts?
On that note, I am almost done at work slapping together my windows service for validating art data from the perforce server. It uses a crappy python-style ini file to store its config data, and starts/stops thanks to the authors of pywin32. It will hopefully use a Queue.Queue to manage its worker thread pool of validation scripts tomorrow, and start sending me happy valid data e-mails soon.
Now if only amara.pushdom was fast enough chunking through my 16mb level files, I'd be happier. psyco.full() here I come.
Maybe I just need to subprocess exec a new python running my scripts?
On that note, I am almost done at work slapping together my windows service for validating art data from the perforce server. It uses a crappy python-style ini file to store its config data, and starts/stops thanks to the authors of pywin32. It will hopefully use a Queue.Queue to manage its worker thread pool of validation scripts tomorrow, and start sending me happy valid data e-mails soon.
Now if only amara.pushdom was fast enough chunking through my 16mb level files, I'd be happier. psyco.full() here I come.
Leave a comment