4 ms·
Had a massive amount of images that I was trying to process for a specific purpose. I wound up spinning up multiple python processes within a java wrapper using
by pookha 3y ago
Had a massive amount of images that I was trying to process for a specific purpose. I wound up spinning up multiple python processes within a java wrapper using concurrent linked queues. Got the job done but it's not the proudest moment of my life.
- seunosewa 3y agoWhy did you need the Java wrapper? You can orchestrate stuff like that within Python. The multiprocessing module.
- giantrobot 3y agoYou could have done this with the multiprocessing module. It interfaces like the threading library but it's launching new processes for each "thread". I've done a shitload of image processing in Python with it. You'll end up with a 100% Python version of what you did.
- ska 3y agoMultiprocessing does basically the same thing, but in python.