Commit 6077b88
authored
PERF: Period plotting performance (#24308)
* PERF: Period plotting performance
Setup
```python
In [3]: N = 2000
...: M = 5
...: idx = date_range('1/1/1975', periods=N)
...: df = DataFrame(np.random.randn(N, M), index=idx)
```
Master:
```python
In [3]: %time df.plot()
CPU times: user 274 ms, sys: 66.7 ms, total: 340 ms
Wall time: 377 ms
Out[3]: <matplotlib.axes._subplots.AxesSubplot at 0x11eda6128>
```
HEAD:
```python
In [4]: %time df.plot()
CPU times: user 141 ms, sys: 32.6 ms, total: 173 ms
Wall time: 194 ms
Out[4]: <matplotlib.axes._subplots.AxesSubplot at 0x11550a5f8>
```1 parent 66fb798 commit 6077b88
2 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | | - | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments