diff --git a/lib/how-to-optimize-arg-checks.tex b/lib/how-to-optimize-arg-checks.tex new file mode 100644 index 0000000..7c367ed --- /dev/null +++ b/lib/how-to-optimize-arg-checks.tex @@ -0,0 +1,58 @@ + +Step1: Optimize direct calls: + +Suppose we have a case-lambda as follows + +(case-lambda + [ ] + [ ] + ... + [ ]) + +First, generate labels for every clause as well as a label for top + +(case-lambda