<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>good call. On a 1.66Ghz PPC </div><div><br></div><div>(#_glVertex3f a b c) takes about 3 us</div><div><br></div><div><div>(defun glVertex3f (a b c)</div><div> (#_glVertex3f a b c))</div></div><div><br></div><div>(glVertex3f a b c) with glVertex3f not inline about 4 us</div><div><br></div><div>(glVertex3f a b c) with inline is back to 3 us</div><div><br></div><div>Oddly, my much faster Intel Mac runs this slower</div><div><br></div><div><br></div><div>That leaves, the unfortunately much harder, problem of finding a way to generate the defun from the famework definition.</div><div><br></div><div>Alex</div><div><br></div><div><br></div><div><br></div><br><div><div>On Jan 8, 2009, at 10:48 AM, Stas Boukarev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Thu, Jan 8, 2009 at 8:33 PM, Alexander Repenning<br><<a href="mailto:ralex@cs.colorado.edu">ralex@cs.colorado.edu</a>> wrote:<br><blockquote type="cite">1) define a function for each foreign function, e.g.,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">(defun glColor3f (R G B)<br></blockquote><blockquote type="cite"> (#_glColor3f R G B))<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- not good: function call overhead<br></blockquote><br>Why not declare that function inline?<br>(<a href="http://www.lispworks.com/documentation/HyperSpec/Body/d_inline.htm">http://www.lispworks.com/documentation/HyperSpec/Body/d_inline.htm</a>)<br><br>-- <br>With Best Regards, Stas.<br><br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Prof. Alexander Repenning</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px">University of Colorado</p><p style="margin: 0.0px 0.0px 0.0px 0.0px">Computer Science Department</p><p style="margin: 0.0px 0.0px 0.0px 0.0px">Boulder, CO 80309-430</p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">vCard: <a href="http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf">http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf</a></font></p><br class="Apple-interchange-newline"></span></span></span></div></span> </div><br></body></html>