I was curious whether to prefer multiple inb instructions for code clarity, or to use inw/inl to make the code faster.
Results: All the instructions are approximately equally fast per _instruction_ (not per byte!). Prefer longer reads if you want to have fast I/O bus accesses.
More info: https://gitlab.com/-/snippets/4838307

Hacker News