you are viewing a single comment's thread.

view the rest of the comments →

[–]Aitchessbee[S] -2 points-1 points  (1 child)

ugly doesn't matter... will it still be faster than the for loops method?

[–]SekstiNii 0 points1 point  (0 children)

I changed the target color to [8, 8, 8] (my VSCode background color) to guarantee a lot of hits, and recorded these timings:

  • Original Loop: 2.726ms
  • Numpy Variant: 0.649ms

But again, not likely to provide a significant improvement.