1 parent 5edca72 commit 0a26738Copy full SHA for 0a26738
1 file changed
src/writer.go
@@ -288,7 +288,7 @@ func writeBatchFiles(
288
allV2ray []string, allClash []string, allClashNames []string,
289
allSNIV2ray []string, allSNIClash []string, allSNIClashNames []string,
290
) {
291
- const batchSize = 1000
+ const batchSize = 500
292
293
rng := rand.New(rand.NewSource(time.Now().UnixNano()))
294
@@ -1867,11 +1867,11 @@ func countBatchFiles(dir string) int {
1867
}
1868
1869
func min500(batchIdx, total int) int {
1870
- start := (batchIdx - 1) * 1000
+ start := (batchIdx - 1) * 500
1871
if start >= total {
1872
return 0
1873
1874
- end := start + 1000
+ end := start + 500
1875
if end > total {
1876
return total - start
1877
0 commit comments