Skip to content

Use UInt8Array to represent binary data #215

@jimhark

Description

@jimhark

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions