ali1234 / vhs-teletext

Software to recover teletext data from VHS recordings.
GNU General Public License v3.0
179 stars 21 forks source link

Refactor multiprocessing to use zeromq #42

Closed ali1234 closed 4 years ago

ali1234 commented 4 years ago

The old multiprocessing implementation used OS pipes directly. This worked okay on Linux but was extremely problematic on Windows, leading to deadlocks. There were also problems with clean-up at exit.

Zeromq uses TCP sockets instead. It is a bit slower due to increased overhead, but is much more portable and does not seem to deadlock.

This adds a new dependency on zeromq, but that is easily installed with pip. No external native libraries are required as far as I know.