Skip to content

枝を形成するところgoroutine化できないか #263

@ddddddO

Description

@ddddddO

以下でgoroutineを使えれば、かなり早くなるのではないかと推測
推測なので計測しないとかもだけど、手間なら実施前後で速度に差が出るか確認するでいい

if err := dg.assembleBranch(current); err != nil {
return err
}

この処理時点では既に木としての構造はできてるはずで、currentの処理は、他のnodeへの副作用はなさそうだし、他のnodeのこの処理が終わってないとできない、ということも無さそうなので、goroutine化は可能そうに思う

実際にやるならgoroutineのlimitは設ける
race conditionは起こりうるかな

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