staticrypt
staticrypt copied to clipboard
Use UInt8Array to represent binary data
Summary
Use Uint8Array to represent binary data internally, convert hex strings to Uint8Array input, and convert Uint8Arrays to hex strings on output.
Proposed Solution
Currently the preferred internal representation of binary data is hex string. Conversions to Uint8Array or ArrayBuffer are performed as needed for API calls. Instead Uint8Array should be used where possible and conversions to/from hex strings should be done on input/output.
Benefits
- Enables supporting larger HTML files
- Reduces RAM requirements
- Improves processing speed
I am preparing a pull request.