Skip to content

Use fastrand to generate random numbers quicker #22

@mihirnimgade

Description

@mihirnimgade

Currently, the initial generation of random populations is inefficient and is the bottleneck in overall optimization speed.

Instead of using the regular rand module, use the fastrand module inside of point::random and initialize the ThreadRng instance globally instead of inside the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions