mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? shard amount need to grow quadratic to cpu count to keep propability of conflicts constant probability is computed via birthday paradox
13 lines
311 B
Plaintext
13 lines
311 B
Plaintext
|_name, _initial| {
|
|
turbo_tasks::TurboTasks::new(
|
|
turbo_tasks_backend::TurboTasksBackend::new(
|
|
turbo_tasks_backend::BackendOptions {
|
|
num_workers: Some(2),
|
|
small_preallocation: true,
|
|
..Default::default()
|
|
},
|
|
turbo_tasks_backend::noop_backing_storage(),
|
|
)
|
|
)
|
|
}
|