-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(compiler): use TypedArrays and DataViews to calculate i18n m…
…essage IDs (#48256) The native UTF-8 encoder (`TextEncoder`) provides its output as a `Uint8Array` which is a specialized `TypedArray` for storing byte values. To remove the need to copy and transform this data multiple times, a `DataView` is used to allow for low-level access to the data in a variety of bit-widths and endianness. The `DataView` class is natively available and supported by all browsers and Node.js versions support by the framework (https://caniuse.com/mdn-javascript_builtins_dataview). PR Close #48256
- Loading branch information
1 parent
0827091
commit 7f36221
Showing
1 changed file
with
66 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters