The slowdown comes from CFFI using sb-sys:find-foreign-symbol-address whereas your FOO2 version uses the simpler sb-sys:foreign-symbol-sap. Alas, they don't seem to be interchangeable.
The slowdown comes from CFFI using sb-sys: find-foreign- symbol- address whereas your FOO2 version uses the simpler sb-sys: foreign- symbol- sap. Alas, they don't seem to be interchangeable.