[Openmcl-devel] getting CCL ready for CS graphics courses
Alexander Repenning
ralex at cs.colorado.edu
Thu Jan 8 16:19:29 PST 2009
good call. On a 1.66Ghz PPC
(#_glVertex3f a b c) takes about 3 us
(defun glVertex3f (a b c)
(#_glVertex3f a b c))
(glVertex3f a b c) with glVertex3f not inline about 4 us
(glVertex3f a b c) with inline is back to 3 us
Oddly, my much faster Intel Mac runs this slower
That leaves, the unfortunately much harder, problem of finding a way
to generate the defun from the famework definition.
Alex
On Jan 8, 2009, at 10:48 AM, Stas Boukarev wrote:
> On Thu, Jan 8, 2009 at 8:33 PM, Alexander Repenning
> <ralex at cs.colorado.edu> wrote:
>> 1) define a function for each foreign function, e.g.,
>>
>> (defun glColor3f (R G B)
>> (#_glColor3f R G B))
>>
>> - not good: function call overhead
>
> Why not declare that function inline?
> (http://www.lispworks.com/documentation/HyperSpec/Body/d_inline.htm)
>
> --
> With Best Regards, Stas.
>
Prof. Alexander Repenning
University of Colorado
Computer Science Department
Boulder, CO 80309-430
vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20090108/211b79a0/attachment.htm>
More information about the Openmcl-devel
mailing list