Files
Himanshu Gupta dfe978fff3 Balancing srcJar shards in sharded javac.
Currently srcJar shards are the longest pole in
sharded javac execution [1](https://ui.perfetto.dev/#!/?s=b20570164f10b373408b92da9fb7069f649a5ceb)

This change tries to balance the shards, by:
1) Providing the total number of srcJar shards.
2) Flattening srcJars into src list then feeding splits
from the list to every srcJar shard.

When applied, we save around 6s for a java method signature change
in framework-minus-apex
[2](https://ui.perfetto.dev/#!/?s=8f7acee29b6316fa9f46417f04d96807f3406e1b),
compared to the original

Bug: 387799579
Test: m framework-minus-apex, m nothing
Change-Id: Ibae4f92de72f7ad537806d3f2c22be991d75de9e
2025-06-15 22:34:54 +01:00
..