Commit 8f5b4a1
Speed up _mapping_repr (#5661)
* Create a ordered list from the keys only.
* Add benchmark
this branch:
[ 31.25%] ··· repr.Repr.time_repr 14.8±0.3ms
[ 37.50%] ··· repr.Repr.time_repr_html 164±1ms
main:
[ 31.25%] ··· repr.Repr.time_repr 41.6±0.5ms
[ 37.50%] ··· repr.Repr.time_repr_html 188±1ms
* Update whats-new.rst
Co-authored-by: dcherian <[email protected]>1 parent 9ea09e0 commit 8f5b4a1
File tree
3 files changed
+30
-3
lines changed- asv_bench/benchmarks
- doc
- xarray/core
3 files changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
6 | 28 | | |
7 | 29 | | |
8 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
391 | | - | |
| 390 | + | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
396 | 398 | | |
397 | 399 | | |
398 | 400 | | |
| |||
0 commit comments