Skip to content

Optimize by subtracting first. #3

@issuefiler

Description

@issuefiler

base32-decode/index.js

Lines 49 to 50 in fa61c01

output[index++] = (value >>> (bits - 8)) & 255
bits -= 8

Switch the places of the two lines of code. Subtract 8 from the bits first, so that you don’t have to subtract it again.

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