DarkSharpness commented on issue #265:
URL: https://github.com/apache/tvm-ffi/issues/265#issuecomment-3573648361

   BTW, many of these calls cannot actually be inlined. See this [minimal 
example](https://godbolt.org/z/EvrfMbTn3)
   
   TL;DR: passing a member function via a raw function pointer loses important 
static information, so the compiler can no longer inline the call. Wrapping the 
member function in a templated callable preserves the static type information 
and gives the compiler a chance to inline the invocation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to