Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of projection #1028

Merged
merged 2 commits into from
Jul 23, 2021
Merged

Improve performance of projection #1028

merged 2 commits into from
Jul 23, 2021

Conversation

ritchie46
Copy link
Member

Following #1023 this PR adds hashed column retrieval when there are more than 300 columns.
The naive algorithm for finding named columns was a linear search through all column names. Because there are also several layers of indirection this can become slow. Especially in the issue discussed where there were more than 2M columns.

For the lazy projection an optimization rule was added. In case of simple projection, being Vec<col(..)> we don't throw the projection on the threadpool, but we simply call the eager DataFrame,select.

@ghuls, can you take this for a spin? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant