[cffi-devel] [PATCH] Expand body only once for uffi:with-cstring.
Stephen Compall
s11 at member.fsf.org
Wed Jul 23 04:54:27 UTC 2008
Got an explosion in CLSQL-PostgreSQL with a uffi:with-cstrings
expansion, as 7 strings makes 128 copies of the body. On the theory
that the compiler can inline flets far easier than factor them, this
patch puts the body in an flet and calls the resulting function from the
two contexts `with-cstring' creates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cffi-wcstrings-explosion.darcs.patch
Type: text/x-patch
Size: 48026 bytes
Desc: the patch
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20080722/7f83e340/attachment.bin>
-------------- next part --------------
--
a Mr. Fleming wishes to study bugs in smelly cheese; a Polish woman
wishes to sift through tons of Central African ore to find minute
quantities of a substance she says will glow in the dark; a Mr. Kepler
wants to hear the songs the planets sing.
--Carl Sagan, "The Demon-Haunted World"
More information about the cffi-devel
mailing list