[whatwg] Canvas pixel manipulation and performance

Boris Zbarsky bzbarsky at MIT.EDU
Sat Nov 28 21:00:03 PST 2009


On 11/28/09 11:42 PM, Kenneth Russell wrote:
> From a technical standpoint, it would be feasible to use the
> "WebGLUnsignedIntArray" to access the Canvas's pixel data, and
> assemble RGBA pixels into integer values using just JavaScript logical
> operators.

I assume you meant JS bitwise operators?  Do we have any indication that 
this would be faster than four array property sets?  The bitwise ops in 
JS are not necessarily particulary fast.

-Boris



More information about the whatwg mailing list