Commit 05c4c87
committed
Attempt at performance improvements in recalculateVminsumForAffectedPixels
Replaced marked with a weird LRU-esque set thing. This array gets to be
enormous but only the last few items are ever relevant.
Removed enqueued, this also gets enormous and we can just rely on marked
stopping these pixels getting re-processed.1 parent 5140d40 commit 05c4c87
1 file changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
8 | 26 | | |
9 | 27 | | |
10 | 28 | | |
| |||
310 | 328 | | |
311 | 329 | | |
312 | 330 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 331 | + | |
316 | 332 | | |
317 | 333 | | |
318 | 334 | | |
| |||
327 | 343 | | |
328 | 344 | | |
329 | 345 | | |
330 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
331 | 349 | | |
332 | | - | |
| 350 | + | |
333 | 351 | | |
334 | 352 | | |
335 | 353 | | |
| |||
355 | 373 | | |
356 | 374 | | |
357 | 375 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 376 | + | |
363 | 377 | | |
364 | 378 | | |
365 | 379 | | |
| |||
0 commit comments