chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Optimizing inner loops


From: Carlos Pita
Subject: [Chicken-users] Optimizing inner loops
Date: Tue, 29 Aug 2006 15:10:55 -0300 (ART)

Hi!
I would like to know if it's possible to implement very efficient inner loops that do flonum number crunching over srfi-4 arrays, avoiding type checking at all. I understand from the manual that fp+, fp-, etc assume that their args are flonums, and from the faq that f64vector-ref and f64vector-ref! will be handled specially by the compilator under usual-integrations. But what does it exactly mean? Will the accesors type check their arguments? Or will, say, fixnums be "promoted" to f64? I wonder if it's possible to get (almost) C-performance, resigning type safety, for compiled code using fp family of operators and fp64 vectors.
Thank you very much.
Regards, Carlos


Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
Probalo ya!
reply via email to

[Prev in Thread] Current Thread [Next in Thread]