DarkSharpness opened a new issue, #261:
URL: https://github.com/apache/tvm-ffi/issues/261

   
https://github.com/apache/tvm-ffi/blob/7f3f8726156ab6e33f781562afafd9c6f219551f/include/tvm/ffi/function.h#L714-L718
   
   When constructed from C++ functions, this will lead to one unnecessary copy. 
A quick example is the code in PR #228 (support for STL), where we construct 
`TypedFunction` from native C++ functions.
   
   A (hopefully) better implementation can be use perfect forwarding for all 
types except for `TypeFunction` itself.
   


-- 
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