[cffi-devel] Performance of CFFI:PARSE-TYPE

2008-05-30 Thread Hans Hübner
Hi, I have recently switched to using the cffi+lotsastuff version and I find it very slow for certain applications. The reason for this is that PARSE-TYPE is called from FOREIGN-TYPE-SIZE, and PARSE-TYPE is very expensive. It would be relatively easy to cache the type parsing results in a hash t

Re: [cffi-devel] Performance of CFFI:PARSE-TYPE

2008-05-30 Thread Hans Hübner
On Fri, May 30, 2008 at 5:49 PM, Luís Oliveira <[EMAIL PROTECTED]> wrote: > PARSE-TYPE has been slow ever since it started to check for cycles. > This change is not specific to the cffi+lotsastuff branch: We are using the latest release version of CFFI internally, and I have tried out the cffi+lot

Re: [cffi-devel] Performance of CFFI:PARSE-TYPE

2008-05-30 Thread Hans Hübner
On Fri, May 30, 2008 at 7:27 PM, Luís Oliveira <[EMAIL PROTECTED]> wrote: > On Fri, May 30, 2008 at 5:13 PM, Hans Hübner <[EMAIL PROTECTED]> wrote: >> Every invocation of FOREIGN-STRING-ALLOC eventually invokes >> PARSE-TYPE, and we use it a lot. > > Thanks to th

Re: [cffi-devel] Performance of CFFI:PARSE-TYPE

2008-05-30 Thread Hans Hübner
On Fri, May 30, 2008 at 10:55 PM, Luís Oliveira <[EMAIL PROTECTED]> wrote: > On Fri, May 30, 2008 at 8:08 PM, Hans Hübner <[EMAIL PROTECTED]> wrote: >> On Fri, May 30, 2008 at 7:27 PM, Luís Oliveira <[EMAIL PROTECTED]> wrote: >>> Thanks to the optimization m

Re: [cffi-devel] Performance of CFFI:PARSE-TYPE

2008-06-02 Thread Hans Hübner
On Fri, May 30, 2008 at 5:13 PM, Hans Hübner <[EMAIL PROTECTED]> wrote: >>> On Fri, May 30, 2008 at 7:27 PM, Luís Oliveira <[EMAIL PROTECTED]> wrote: >>>> Thanks to the optimization mentioned above (a compiler macro for >>>> foreign-alloc),

[cffi-devel] WITH-FOREIGN-STRING allocates on heap?

2008-06-19 Thread Hans Hübner
Hi, is there a good reason why WITH-FOREIGN-STRING allocates the buffer on the heap instead of using WITH-FOREIGN-OBJECT, which will allocate on the stack on platforms that support it? Thanks, -Hans ___ cffi-devel mailing list cffi-devel@common-lisp.net

Re: [cffi-devel] WITH-FOREIGN-STRING allocates on heap?

2008-06-20 Thread Hans Hübner
On Fri, Jun 20, 2008 at 9:13 AM, Luís Oliveira <[EMAIL PROTECTED]> wrote: > On Fri, Jun 20, 2008 at 5:21 AM, Hans Hübner <[EMAIL PROTECTED]> wrote: >> is there a good reason why WITH-FOREIGN-STRING allocates the buffer on >> the heap instead of using WITH-FOREIGN-OBJ

Re: [cffi-devel] uffi.asd vs uffi-compat.asd

2009-08-21 Thread Hans Hübner
On Fri, Aug 21, 2009 at 19:10, Luís Oliveira wrote: > As Daniel Herring hinted, one way you can solve this problem is to > setup asdf:*central-registry* such that UFFI's uffi.asd takes > precedence over the clbuild/systems/uffi.asd one. Would that work for > you? I use an automated mechanism to s

Re: [cffi-devel] Possible bug reading *FOREIGN-LIBRARY-DIRECTORIES* on Windows 7

2012-11-09 Thread Hans Hübner
Ralph, what you observe is not a bug in CFFI, but a feature of the Common Lisp pathname system. The *FOREIGN-LIBRARY-DIRECTORIES* contains a list of pathname designators. When a string is used as a pathname designator (either by putting a string onto that list or by using the #P reader macro to