mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Added comment about possible optimization
This commit is contained in:
parent
480a873ce1
commit
29a34ff64a
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue