|
From: | Marius Vollmer |
Subject: | Re: expansion, memoization, and evaluation... |
Date: | 05 Dec 2002 17:27:27 +0100 |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Rob Browning <address@hidden> writes: > (call scm_add (ref x_4432) (ref y_2231)) > > but later, as we get smarter about flow analysis, etc. we might be > able in some cases to generate: > > (plus (ref x_4432) (ref y_2231)) > > which would be *way* faster. Just some random thoughts since I have done this in guile-lightning: we should definitely inline fixnum arithmetic and call out of line code only for non-fixnums or overflows. That gives a big improvement over just calling scm_sum all the time. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
[Prev in Thread] | Current Thread | [Next in Thread] |