Omega359 commented on PR #12027: URL: https://github.com/apache/datafusion/pull/12027#issuecomment-2296555551
> StringArrayType is just a trait and the code should compile to the same binary as direct approach thus same performance. Not sure why it is 2x slower than direct approach for `using_loop`. The implementation is different. StringArrayType goes through a fn as per typical usage of it (since StringArrayType isn't object safe). I think that is where the additional time has gone. > Last thoughts: I'm not sure if we want to introduce an easy-to-use but expensive api. Fair, though it's only expensive when not using .iter(). It was an interesting poc for me so I learnt a few things if nothing else :) -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org