Commit 3829417
committed
Avoid vstack() when possible.
In transforms.py, array() is faster -- the changes speeds up the
proposed precision-sensitive version of format_data_short by ~10%
(essentially because we get to skip the calls to np.atleast_2d in
vstack).
Also replace a vstack() call by a concatenate() in path.py, while we're
at it.1 parent 95c8c88 commit 3829417
2 files changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 333 | + | |
| 334 | + | |
340 | 335 | | |
341 | 336 | | |
342 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2176 | 2176 | | |
2177 | 2177 | | |
2178 | 2178 | | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
2183 | 2182 | | |
2184 | 2183 | | |
2185 | 2184 | | |
| |||
2229 | 2228 | | |
2230 | 2229 | | |
2231 | 2230 | | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
2236 | 2234 | | |
2237 | 2235 | | |
2238 | 2236 | | |
| |||
0 commit comments