Commit a532bf1
committed
Avoid extra copy initializing empty Affine2D
This saves a small amount of time each:
```
In [1]: from matplotlib.transforms import Affine2D
In [2]: %timeit Affine2D()
1.42 µs ± 6.17 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)
```
vs
```
In [1]: from matplotlib.transforms import Affine2D
In [2]: %timeit Affine2D()
1.1 µs ± 13 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)
In [3]: 1.1/1.42
Out[3]: 0.7746478873239437
```1 parent bcfd5e6 commit a532bf1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1890 | 1890 | | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | | - | |
| 1893 | + | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | 1896 | | |
| |||
0 commit comments