feat(转换能力): 支持原生与网页批量并行
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-18 01:48:36 +08:00
1 parent 0eae7c72d0
commit a0899fa150
15 files changed
+549 -119

No files matched your search

+1 -2
View File
@@ -17,7 +17,6 @@ package ofdgo
import (
"fmt"
"math"
"runtime"
"slices"
"sync"
@@ -438,7 +437,7 @@ func (c *pdfCompositor) mesh(mesh *pdfgo.MeshGradient, space *pdfgo.ColorSpace,
}
return c.importer.ctx.Err()
}
workers := min(runtime.GOMAXPROCS(0), 4, max(1, c.height/32))
workers := min(conversionWorkers(c.importer.ctx, 4), max(1, c.height/32))
if workers == 1 {
if err := sampleRows(0, c.height); err != nil {
return nil, err