Summary
improve devastating floating-point performance
Metadata
- Id: 92be73fbd48d0078575d212519bb3f6389d5ec4e
- Trac id: 132
- Type: enhancement
- Reporter: felix
- Owner: felix
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone:
- Version: 4.2.x
- Changetime: 2009-12-31 00:57:17 UTC
- Created: 2009-11-27 15:29:19 UTC
- Keywords: performance compiler floating-point
Description
Floating-point calculations are quite slow, because all operations are boxed and many simple operations are implemented in `runtime.c` and so require a cross-module call.
Putting small functions from `runtime.c` as `static inline` (or `static` for non-GNU/ICC/C++ compilers) into `chicken.h` should give an improvement.
Unboxing floating-point variables in the generated code would be even better.