Commit 4bd112b
authored
Move transparent fill check to a less expensive place. (#5826)
Checking the fill style for each sample has a lot of overhead. As an
alternative, we can accumulate the samples but then just skip the
drawing at the end.
This improves activity graph drawing performance on
https://share.firefox.dev/4aqbUN1 by 23%.
Before: https://share.firefox.dev/3Oy0NtP
After: https://share.firefox.dev/4aqbUN1File tree
4 files changed
+33
-1090
lines changed- src
- test/components/__snapshots__
4 files changed
+33
-1090
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
233 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
| 325 | + | |
327 | 326 | | |
328 | 327 | | |
329 | 328 | | |
330 | 329 | | |
331 | | - | |
332 | 330 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 331 | | |
339 | 332 | | |
340 | 333 | | |
| |||
0 commit comments