Closed connor4312 closed 2 hours ago
cc. @Tyriar is there a compromise on what we hash for the ID? ie, maybe half of the bytes instead of the full thing, or something of the sort, since ATM we are just hashing the entire received UInt8Array
It looks like the function is trying to hash the Uint8Array naively as an object (hashing each key and value for each element in the array) which is going to be extraordinarily slow. crypto.subtle.digest
should complete in millisecond(s) :)
Testing #229263
Seems we spent in the objectHash function