Skip to content

2**32 being calculated multiple times #8686

@Siddhesh-Agarwal

Description

@Siddhesh-Agarwal

What would you like to share?

In this file 2**32 is being calculated multiple times.

we can instead use a variable MOD = 1 << 32 and save lots of compute time.

Additional information

Bit shift is faster than multiplication in all languages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageAwaiting triage from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions