Re: [Larceny-users] make-bytevector and bytevector-copy

2009-02-15 Thread William D Clinger
Ed wrote: > So my question is, is the first version of 'get-modelview-matrix' > shown above inherently "hot"? Maybe. The other possibilities are that (glGetDoublev GL_MODELVIEW_MATRIX bv) takes a long time or that the profiler is overcounting calls to foreign procedures for some reason. In any c

[Larceny-users] make-bytevector and bytevector-copy

2009-02-15 Thread Eduardo Cavazos
Hello, When profiling my program, I notice 'get-modelview-matrix' is consistently high in the list. Here it is: (define (get-modelview-matrix) (let ((bv (make-bytevector (* 16 8 (glGetDoublev GL_MODELVIEW_MATRIX bv) bv)) I could write it like this: (define get-modelview-matrix