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

   I have one proposal implementation 
[here](https://github.com/DarkSharpness/tvm-ffi/commit/15a71a4f21d096afdf979b69fb99fbe86cd7dc2c)
 (not guarantee to be functional, just a demo)
   
   The idea is to support function overloading via an `OverloadedFunction` 
wrapper. When there is no overload, the call simply falls back to 
`unpack_call`, adding only a single boundary check on the critical path.
   
   When multiple overloads are present, the system attempts them sequentially 
and selects the first one whose signature matches the incoming arguments.
   
   Users can choose to allow overload in a `ObjectDef` or not.
   


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