Skip to content

PERF: regression in time series plotting #24304

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

Closed
jorisvandenbossche opened this issue Dec 16, 2018 · 1 comment
Closed

PERF: regression in time series plotting #24304

jorisvandenbossche opened this issue Dec 16, 2018 · 1 comment
Labels
Performance Memory or execution speed performance Regression Functionality that used to work in a prior pandas version
Milestone

Comments

@jorisvandenbossche
Copy link
Member

Opening a dedicated issue to not have this lost in #18532.

Using the example from the benchmarks:

N = 2000 
M = 5 
idx = date_range('1/1/1975', periods=N) 
df = DataFrame(np.random.randn(N, M), index=idx)  

I get on master:

In [25]: %%timeit plt.close('all') 
    ...: df.plot() 
                          
2.07 s ± 251 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

but on 0.23.4:

In [2]: %%timeit plt.close('all') 
   ...: df.plot()
   ...: 
87.4 ms ± 979 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)

The slowdown was originally even bigger and was addressed already partly #23589, but there is still a ~ 50x slowdown remaining.

@jorisvandenbossche jorisvandenbossche added Performance Memory or execution speed performance Regression Functionality that used to work in a prior pandas version labels Dec 16, 2018
@jorisvandenbossche jorisvandenbossche added this to the 0.24.0 milestone Dec 16, 2018
@TomAugspurger
Copy link
Contributor

Taking a look at this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

No branches or pull requests

2 participants