inline declarations

Greg Bennett <[email protected]> Wed, 28 Jan 2026 15:41:30 -0500
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
I am porting a large project in which there are a significant number of 
calls to inline functions.
I have been using

(declaim (sb-ext:maybe-inline zot))
(defun zot (x y) ...)

without complaint from the compiler at this combination.

However, I did run into:
*inline-expansion-limit* (50) was exceeded while inlining zot

So I increased the (default) 50 to 100 and tried again, only to receive:

; note: *INLINE-EXPANSION-LIMIT* (100) was exceeded while inlining LOG-GAMMA
;Heap exhausted during garbage collection: 8144 bytes available, 8208 
requested.

At other junctures I get:

; caught STYLE-WARNING:
;   Call to QUAIL-KERNEL::INCOMPLETE-BETA-CF could not be inlined 
because its
;   source code was not saved. A global INLINE or SB-EXT:MAYBE-INLINE 
proclamation
;   must be in effect to save function definitions for inlining.

I am unsure of the form of the global INLINE, and where it should be issued.

Any advice/assistance in inlining will be much appreciated.

Cheers
Greg Bennett



_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help