i replaced array.indexof with object\[key\] to reduce a lot of lookups by a constant factor of computing a hashkey, yippie.