mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Revisions
This commit is contained in:
parent
ba98256ce1
commit
257d4a4aa6
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@
|
||||||
|
|
||||||
Compiler Optimizations
|
Compiler Optimizations
|
||||||
|
|
||||||
- Optimize recursive functions by expressing the recursive calls using C iteration. This optimization is more effective when combined with the other functions listed below as those increase the chances that a loop may be compiled down to a single function which can then be "called" repeatedly using a `while` loop which is more efficient at a low level than repeated calls to C functions.
|
- Optimize recursive functions by expressing the recursive calls using C iteration. This optimization is more effective when combined with the others listed below as they collectively increase the chances that a higher-level Scheme loop may be compiled down to a single C function which can then be "called" repeatedly using a `while` loop which is more efficient at a low level than repeated calls to C functions.
|
||||||
- Combine lambda functions that are only called for side effects.
|
- Combine lambda functions that are only called for side effects.
|
||||||
- Improve inlining of primitives that work with immutable objects.
|
- Improve inlining of primitives that work with immutable objects.
|
||||||
- Eliminate functions that are only used to define local variables.
|
- Eliminate functions that are only used to define local variables.
|
||||||
|
|
||||||
Features
|
Features
|
||||||
|
|
||||||
- Added a new feature `program` to `cond-expand` that is only defined when compiling a program. This allows, for example, a `.scm` file to contain a section of code that can be used to run unit tests when the file is compiled as a program. Or the same file can be used to import code into a library. This is similar to using the `__main__` scope in a python program.
|
- Added a new feature `program` to `cond-expand` that is only defined when compiling a program. This allows, for example, a `.scm` file to contain a section of code that can be used to run unit tests when the file is compiled as a program. The same file can then be used in production to import code into a library. This is similar to using the `__main__` scope in a python program.
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue