Skip to content

Conversation

@adriangb
Copy link
Contributor

Working on apache/datafusion#18449 it came up that the dynamic dispatch here can hurt performance for simple types. This version seems to perform better in benchmarks there (admittedly run alongside other changes).

@Dandandan
Copy link
Contributor

Would be nice to see the sorting benchmarks on this change! My feeling is it might significantly reduce the overhead of the lexical sorting kernels (compared to row format).

@adriangb
Copy link
Contributor Author

Or it might make it worse… it’s a trade off of indirection vs branch prediction. As we found out in apache/datafusion#18449 the same change can be 70% faster on ARM MacBooks and 70% slower on x86.

So needless to say this should not be merged without benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants