Optimize odbc::%cstring-to-vector on sbcl if cffi isn't loaded.
authorRuss Tyndall <russ@acceleration.net>
Fri, 17 Jun 2011 21:53:45 +0000 (17:53 -0400)
committerNathan Bird <nathan@acceleration.net>
Thu, 30 Jun 2011 21:13:17 +0000 (17:13 -0400)
commit3695e84c9884de90334a248d328400c4e8afa50c
tree0417a797c211af909dc61005d703d847df842ec5
parentb712c97002b19e418f8430cef1257515a5e3a3d3
Optimize odbc::%cstring-to-vector on sbcl if cffi isn't loaded.

It now uses sb-sys:sap-ref-8 instead of sb-alien:deref (via
uffi:deref-array) based on what we found CFFI using.

This makes the ODBC backend a couple orders of magnitude faster when
talking strings to MSSQL.

TODO: figure out how to make this change in UFFI or sb-alien so that
more places can benefit from this speed improvement
db-odbc/odbc-api.lisp