On Mon, Mar 10, 2003 at 11:08:23PM +0000, José Fonseca wrote:

 > But the function I put in the table _was_ an ordinary function, and
 > not a C++ method, and no redirection call would take place with
 > inlining.  That was the point of the explanation...

 Uhm... how do you inline a function call that's going over a function
 pointer?  Specifically, ask youself what's involved in inlining a
 function.

 > And yes, I do believe that, with care, C++ won't create a noticeable
 > overhead, but there's no point to discuss it, as we can simply
 > benchmark it on the end.

 There's probably a way to make this fly, but the way you have shown
 until now isn't it.  You could for example have a dispatch _object_,
 that is, you end up calling:

    dispatch->BlendFunc(...);

 and you can switch the dispatch object.  You are still calling the
 method thru a pointer.  You could probably fix that with some clever
 use of function templates but I don't have a clear picture how software
 fallbacks could (efficiently) work in that case.

 Marcelo


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to