From 29a34ff64ae76f630022fe0191472f619106bd9d Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Sat, 26 Aug 2000 20:56:36 +0000 Subject: [PATCH] Added comment about possible optimization --- libguile/smob.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libguile/smob.c b/libguile/smob.c index da76f5694..02396f950 100644 --- a/libguile/smob.c +++ b/libguile/smob.c @@ -125,6 +125,18 @@ scm_smob_print (SCM exp, SCM port, scm_print_state *pstate) /* {Apply} */ +/* + * A possible future optimization: + * + * Let's call each of the forms of call below a "trampoline". + * + * We could make a function out of each trampoline and store four + * pointers to trampolines in the descriptor, one corresponding to + * each arity of call (apply_0, apply_1 etc.) + * + * Which trampoline to store in which field is chosen in scm_set_smob_apply. + */ + SCM scm_smob_apply_0 (SCM smob) {