Commit b0121b6
authored
Micro optimization of plotting (matplotlib#26303)
* optimizations
* compile nth color re; fast path for int in isfinite
* eliminate generator
* eliminate conversion to list and assignment of cid
* avoid mutation of dict while iterating
* faster minpos construction
* whitespace
* revert change to shorthand
* use math.isfinite1 parent 887b51e commit b0121b6
3 files changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
1690 | 1690 | | |
1691 | 1691 | | |
1692 | 1692 | | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1693 | 1697 | | |
1694 | 1698 | | |
1695 | 1699 | | |
| |||
1717 | 1721 | | |
1718 | 1722 | | |
1719 | 1723 | | |
1720 | | - | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1721 | 1728 | | |
1722 | 1729 | | |
1723 | 1730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | | - | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
198 | | - | |
| 198 | + | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
670 | 671 | | |
671 | 672 | | |
672 | 673 | | |
| 674 | + | |
| 675 | + | |
673 | 676 | | |
674 | 677 | | |
675 | 678 | | |
| |||
765 | 768 | | |
766 | 769 | | |
767 | 770 | | |
768 | | - | |
| 771 | + | |
769 | 772 | | |
770 | 773 | | |
771 | 774 | | |
| |||
1773 | 1776 | | |
1774 | 1777 | | |
1775 | 1778 | | |
1776 | | - | |
| 1779 | + | |
1777 | 1780 | | |
1778 | 1781 | | |
1779 | 1782 | | |
| |||
0 commit comments