![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Double the speed of Imager->setpixelby swl (Parson) |
on Dec 12, 2022 at 05:41 UTC ( #11148767=note: print w/replies, xml ) | Need Help?? |
True. Looking at the setpixel method it should also be possible to write a variant that iterates over a list of values, e.g. [x1,y1,colour1, x2,y2,colour2, ...] or arrays of x, y and colour. Then the validity checks are called once per method invocation regardless of the number of colour assignments. That might be sufficient for the example in the OP.
In Section
Meditations
|
|