parallel

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parallelize

func Parallelize(items int, fn func(start, end int))

Parallelize は、指定された総数(items)をCPUコア数に応じて分割し、 各範囲(start, end)に対して指定された関数(fn)を並列実行する

func ParallelizeWithThreshold

func ParallelizeWithThreshold(items int, threshold int, fn func(start, end int))

ParallelizeWithThreshold は、アイテム数が閾値を超えた場合のみ並列化を行う threshold以下の場合は、通常の逐次処理を実行する

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL