Listing & testing instr is slow: spinning up a process is a lengthy operation
This is a lengthy operation because every process has to import tons of modules, including instructions_xed
, which is incredibly big.
A possible fix is to spin up a process with a Queue
, hand it instructions one by one, and restart it only when it dies.