penguin-wwy commented on issue #1887:
URL: https://github.com/apache/fury/issues/1887#issuecomment-2532137260

   > I'm rewriting pyfury recently into our new xlang protocol in #1690. One of 
the biggest obstacle is that cython doesn't support `switch case` syntax, which 
is important for performance optimization. We've used swisstable for fast Type 
dispatch, switch can be used for fast serialization of common types without the 
cost of virtual method invocation.
   > 
   > I'm not sure whether we can invoke cython code in C++ in an inline way.
   
   The C++ functions generated by Cython store a function pointer in its 
simulated virtual table. Although it cannot be called in an inline way, the 
overhead of virtual method invocation can be reduced by optimizing access to 
this table.


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