in reply to xs outputs faster than perl can keep up
It sounds like one side is using a buffer and the other isn't. The perl-side syswrite is bypassing perl's normal buffer. Perhaps your XS isn't?
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊