perf(import): adjustable concurrency and skip redundant SWF downloads
Raise batch concurrency (furni 3->12, clone 10->12) with a Speed control next to Translate. Skip the SWF download when a .nitro bundle already exists on disk (color variants share the base nitro), and stop flagging that as a failed download.
This commit is contained in:
1 parent
641b6b8cb8
commit
2a708b01b1
5 files changed
+42
-5
No files matched your search
@@ -33,7 +33,7 @@ export interface RunSseBatchOptions<T> {
|
||||
*/
|
||||
export function runSseBatch<T>(opts: RunSseBatchOptions<T>): Response {
|
||||
const { items, labelOf, worker, signal, flush } = opts;
|
||||
const concurrency = Math.min(Math.max(opts.concurrency || 3, 1), 10);
|
||||
const concurrency = Math.min(Math.max(opts.concurrency || 3, 1), 12);
|
||||
const encoder = new TextEncoder();
|
||||
const ac = new AbortController();
|
||||
|
||||
|
||||
Reference in new issue
Block a user