Skip to content

perf: use native v8 toBase64() / toHex() in Buffer#toString ? #60249

@ChALkeR

Description

@ChALkeR

Available since #59805

According to quick testing, they seem to be 1.6-1.7x faster than Buffer#toString('base64') and Buffer#toString('hex')

Note: this does not apply to fromBase64/fromHex (and those would be incompatible anyway)

Ref: https://tc39.es/proposal-arraybuffer-base64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions