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

Perf: join is 2x faster 🔥 #586

Merged
merged 6 commits into from Feb 11, 2020
Merged

Perf: join is 2x faster 🔥 #586

merged 6 commits into from Feb 11, 2020

Conversation

maartenbreddels
Copy link
Member

I've benchmarked the following:

import vaex
import numpy as np
df = vaex.open('s3://vaex/taxi/yellow_taxi_2009_2015_f32.hdf5?anon=true')[:400_000_000]
dfg = df.groupby('passenger_count', agg=vaex.agg.mean('fare_amount'))
for i in range(20):
    df.join(dfg, 'passenger_count')

And we went form from 113 seconds to 52 (so >x2 speedup), and using 1/9th of the memory. We were always using int64, and always a byte mask, we now let the data decide.
🔥

@maartenbreddels maartenbreddels merged commit d1e3444 into master Feb 11, 2020
@maartenbreddels maartenbreddels deleted the perf_join branch February 12, 2020 10:48
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.

None yet

1 participant