Commit 3b8689a
committed
Path: change the type of the code type constants to match the type of the codes array
The matching types make comparisons between the constants and values of the codes array faster.
Using the Gtk3Cairo backend with wire3d_animation_sgskip.py:
Before: 9.95 fps
After: 15.26 fps
The main areas where this helps for the cairo case is the faster comparisons in
Path.iter_segments() and in _append_paths() of the cairo backend.1 parent 8b65fa1 commit 3b8689a
File tree
2 files changed
+15
-8
lines changed- doc/api/next_api_changes
- lib/matplotlib
2 files changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | | - | |
95 | | - | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments