Commit 454fdaf
sync: Always use WORKER_BATCH_SIZE
With 551285f, the comment about number
of workers no longer stands - dict is shared among multiprocesses and
real time information is available.
Using 2.7k projects as the baseline, using chunk size of 4 takes close
to 5 minutes. A chunk size of 32 takes this down to 40s - a reduction of
rougly 8 times which matches the increase.
[email protected]
Bug: b/371638995
Change-Id: Ida5fd8f7abc44b3b82c02aa0f7f7ae01dff5eb07
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/438523
Commit-Queue: Josip Sokcevic <[email protected]>
Tested-by: Josip Sokcevic <[email protected]>
Reviewed-by: Gavin Mak <[email protected]>1 parent f7f9dd4 commit 454fdaf
3 files changed
+43
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2396 | 2396 | | |
2397 | 2397 | | |
2398 | 2398 | | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
2399 | 2405 | | |
2400 | 2406 | | |
2401 | 2407 | | |
2402 | | - | |
| 2408 | + | |
2403 | 2409 | | |
2404 | 2410 | | |
2405 | 2411 | | |
| 2412 | + | |
2406 | 2413 | | |
2407 | | - | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | 2414 | | |
2416 | 2415 | | |
2417 | 2416 | | |
2418 | | - | |
| 2417 | + | |
2419 | 2418 | | |
2420 | 2419 | | |
2421 | 2420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| |||
819 | 824 | | |
820 | 825 | | |
821 | 826 | | |
822 | | - | |
823 | 827 | | |
824 | 828 | | |
825 | 829 | | |
| |||
849 | 853 | | |
850 | 854 | | |
851 | 855 | | |
| 856 | + | |
| 857 | + | |
852 | 858 | | |
853 | 859 | | |
854 | 860 | | |
| |||
888 | 894 | | |
889 | 895 | | |
890 | 896 | | |
891 | | - | |
| 897 | + | |
892 | 898 | | |
893 | 899 | | |
894 | 900 | | |
895 | 901 | | |
896 | 902 | | |
897 | 903 | | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
| 904 | + | |
911 | 905 | | |
912 | | - | |
913 | 906 | | |
914 | 907 | | |
915 | 908 | | |
916 | 909 | | |
917 | 910 | | |
918 | 911 | | |
919 | | - | |
| 912 | + | |
920 | 913 | | |
921 | 914 | | |
922 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
358 | 382 | | |
359 | 383 | | |
360 | 384 | | |
| |||
0 commit comments