#187 closed enhancement (fixed)
SRFI-4 vector operations should be provided as ##core#inline calls
| Reported by: | felix winkelmann | Owned by: | felix winkelmann |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | core libraries | Version: | 4.5.x |
| Keywords: | srfi-4 | Cc: | |
| Estimated difficulty: |
Description
Safe accessors (and length) should be implemented as C_inline functions in chicken.h, since the accessors in srfi-4.scm are rather slow.
Change History (5)
comment:1 by , 16 years ago
| Milestone: | 4.5.0 |
|---|
comment:2 by , 15 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:3 by , 15 years ago
| Milestone: | → 4.6.0 |
|---|---|
| Version: | 4.4.x → 4.5.x |
comment:4 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Since quite a lot of checking has to be done, it appears to be ok to keep the functions as normal Scheme code instead of implementing inline routines on the C level. srfi-4.scm has been heavily cleaned up an tuned and should be efficient enough (or at least more efficient) now.
Note:
See TracTickets
for help on using tickets.

Reminders:
1) Provide safe rewrite-rules the expand into inline calls like:
1) Use macros to generate
XXXvector-length/-ref/-set!instead of higher order functions, and use safe inline routines (like the one above)