[indexes] IJPL-160177: use 1 shard for <=16 cores

- '2 shards if cores >=16' => '2 shards if cores > 16' -- bechmarks show zero-to-no benefit of sharding for 16 cores

GitOrigin-RevId: 9a846e34749cda1c4b801690de786bf4dab44326
This commit is contained in:
Ruslan Cheremin
2025-01-14 14:11:38 +00:00
committed by intellij-monorepo-bot
parent 4d5d25ed51
commit a4fcefbfac
@@ -38,7 +38,7 @@ public interface ShardableIndexExtension {
// - 16-cores show little-to-no benefits from sharding
// - 32-cores show some benefit from 2 shards
// - 64..128-cores show better benefits from 3 shards.
if (cpus < 16) {
if (cpus <= 16) {
return 1;
}
else if (cpus <= 32) {