JackDrogon commented on PR #39937: URL: https://github.com/apache/arrow/pull/39937#issuecomment-1929312222
> Performance should not be affected by this whatsoever. I'd expect both `switch` statements `std::visit` calls to compile down to jump tables or branches. @pitrou @bkietz No. If use switch ,just need 2 branch predicate (kind + check kind type) and 1 branch + type check by get. Use visit just need 1 for table dispatch. Use visit also avoid default type check -- 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]
