7 Nov 2004 04:52
(setf uffi:get-slot-value) slowness in sbcl
<svref <at> yahoo.com>
2004-11-07 03:52:21 GMT
2004-11-07 03:52:21 GMT
I've got compiled code that looks like: (uffi:with-foreign-object (rect 'sdl:rect) (setf (uffi:get-slot-value rect 'sdl:rect 'sdl::x) 137) ;; do something with rect... ) Every time I execute this pre-compiled code, I get a warning about ; compilation unit finished ; printed 1 note ; in: LAMBDA NIL ; (SB-ALIEN-INTERNALS:NATURALIZE ; (SB-SYS:SAP+ SB-ALIEN::SAP (/ SB-ALIEN::OFFSET SB-VM:N-BYTE-BITS)) ; '#<SB-ALIEN-INTERNALS:ALIEN-RECORD-TYPE (STRUCT SDL:RECT ; (SDL::X #) ; (SDL::Y #) ; (SDL::W #) ; (SDL::H #))>) ; ==> ; (SB-ALIEN-INTERNALS:%SAP-ALIEN ALIEN ; '#<SB-ALIEN-INTERNALS:ALIEN-RECORD-TYPE ; (STRUCT SDL:RECT (SDL::X #) (SDL::Y #) (SDL::W #) (SDL::H #))>) ; ; note: unable to ; optimize ; because: ; could not optimize away %SAP-ALIEN: forced to do runtime ; allocation of alien-value structure(Continue reading)


Cheers,
Christophe
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
RSS Feed