Skip to content

Avoid geneal-case division and modulus in _ntoa functions #117

@eyalroz

Description

@eyalroz

@mickjc750 suggests:

In the ntoa(), I'd recommend using literal values %2 %8 %10 %16 rather than
%base, as it saves performing a division. It's a minor size increase for a
big performance increase.

Sounds like a plan.

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