Saturday, October 1, 2011

GWT and TypedArray

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFOh11Hf9E0noFvlzgRAnUaAKDVE/8Gt8RVqxa6W/it2K4XPTd6+QCeM+Af
PU1Jnypk/S5y44XM7mQ0NHo=
=/CB9
-----END PGP SIGNATURE-----
So there's a new Javascript API, TypedArray. This provides efficient
fixed-type arrays for primitive data types. For example, Int8Array
stores only integers in the range -128..127.

It occurs to me that these would be ideal for GWT's implementations of
Java primitive object arrays. For example, the above Int8Array is
equivalent to byte[].

Does anyone know if GWT uses these if available? If not, are there any
plans to?

(This is important to me because I need fast primitive arrays; if GWT
already supports TypedArrays, then I don't need to wrap them myself.)

--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────

│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith

No comments:

Post a Comment