About a month ago Anthony Green added a novel "call plan" to libffi. This allows one to cache the hard work of determining what to do once and skip all of that work in subsequent calls. You can read more of the details on their article about it. The best case for me was about...