1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 19:50:24 +02:00

Added comment about possible optimization

This commit is contained in:
Mikael Djurfeldt 2000-08-26 20:56:36 +00:00
parent 480a873ce1
commit 29a34ff64a

View file

@ -125,6 +125,18 @@ scm_smob_print (SCM exp, SCM port, scm_print_state *pstate)
/* {Apply} /* {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
scm_smob_apply_0 (SCM smob) scm_smob_apply_0 (SCM smob)
{ {