ipfs/kubo

Tune batch add parallelism constant

Open

#4,299 opened on Oct 11, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (2,725 forks)batch import
help wantedstatus/deferredtopic/perf

Repository metrics

Stars
 (13,906 stars)
PR merge metrics
 (Avg merge 4d 2h) (28 merged PRs in 30d)

Description

Specifically, tune the ParallelBatchCommits constant added in #4296. Right now, we just use NumCPU*2 but we could probably do something fancier (learn it? does the datastore matter? does the storage medium matter? how about the filesystem?).

We may never get to this but hey, if anyone wants to spend some time experimenting they're free to take a crack at it.

Contributor guide