On Wed, 2020-03-18 at 10:35 +0100, Clemens Ladisch wrote: > I think the lowest-hanging fruit are the hardcoded 0x10, and that > port->active is not a single bitfield; the latter will make > searching for active ports easier. I'll create patches for this. I've created a small test utility that may be useful to test patches. See https://github.com/not1337/rawmidiperf BTW: Have you you already have something to look at? Regards Andreas