maskit commented on PR #9482:
URL: https://github.com/apache/trafficserver/pull/9482#issuecomment-1460696518

   > There is some chance that this would be faster than dynamic_cast: 
https://godbolt.org/z/fvzWsxj5T .
   
   I don't think we need to cast MixinA to MixinB. In that sense this should be 
enough, it's so naive though. https://godbolt.org/z/fjnMxfj85
   
   But your code suggests that I could store pre-casted pointers into a map 
instead of just having supported types in a set.
   
   I wonder if this kind of ways can be ten times faster than dynamic_cast. 
Only 5% faster way is not a win here.


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

Reply via email to