loeg 18 hours ago

You could run the two parts in separate processes and pass messages via shared memory.