Skip to content

Branching can be faster #1

@b3m2a1

Description

@b3m2a1

The branching algorithm here can get quite slow where there are large numbers of walkers. This can be made faster by using what we did in RynLib (specifically here). That had to deal with a number of other possible variants, though, like branching because a walker's weight had become too high or too low, so the true core is in chop_weights which makes use of an initial partial sorting coming from argpartition and then is applied iteratively if necessary (it's almost never necessary to do more than one loop)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions