parallel

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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 divides the specified total number (items) according to the number of CPU cores, and executes the specified function (fn) in parallel for each range (start, end)

func ParallelizeWithThreshold

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

ParallelizeWithThreshold performs parallelization only when the number of items exceeds the threshold If below threshold, normal sequential processing is performed

Types

This section is empty.

Jump to

Keyboard shortcuts

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