Page MenuHomePhabricator

[native] Use BlobUtils for media encryption/decryption
ClosedPublic

Authored by bartek on May 25 2023, 7:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 29, 7:07 AM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Unknown Object (File)
Feb 26 2024, 9:35 PM
Unknown Object (File)
Dec 31 2023, 12:55 AM
Unknown Object (File)
Dec 16 2023, 11:16 PM
Subscribers

Details

Summary

This diff increases the performance of media encryption/decryption by using newly introduced methods instead
of basing on response.arrayBuffer() which uses slow base64 under the hood. Details are described in parent diffs and
in the task issue.

Depends on D7974

Test Plan

Ensured that media encryption/decryption still works as expected.
For these more curious, you can check performance using the following:

const startTime = Date.now();
// code from this diff here
console.log('Time:', Date.now() - startTime);

In my case, the time went down from hundreds of milliseconds to 1-2ms.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable