Commit f486cbf
NORMALIZED-MODULUS: access specvar MODULUS only once
Accessing special variables is expensive on some Lisps, e.g. SBCL.
Reduce the number of accesses to MODULUS by using a temporary variable.
CMOD (and NORMALIZED-MODULUS) are heavily used by the CRE package whenever
coefficients are added, multiplied etc.
This change makes CMOD about 7% faster when MODULUS is set to non-NIL on SBCL
(no difference when MODULUS is NIL).1 parent b63cd4a commit f486cbf
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 191 | + | |
| 192 | + | |
194 | 193 | | |
195 | | - | |
| 194 | + | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
0 commit comments