handy online tools for AT Protocol boat.kelinci.net
atproto bluesky atcute typescript solidjs

fix: prevent memory build-up when unpacking

mary.my.id 02bbc001 bf56e39e

verified
+8 -2
+8 -2
src/views/repository/repo-archive-unpack.tsx
··· 88 data: JSON.stringify(record, null, 2), 89 }); 90 91 - progress.update(`Unpacking records (${count} entries)`); 92 - writable.write(entry); 93 count++; 94 95 if (yieldToScheduler !== undefined) { 96 await yieldToScheduler();
··· 88 data: JSON.stringify(record, null, 2), 89 }); 90 91 count++; 92 + 93 + if (count % 100 !== 0) { 94 + writable.write(entry); 95 + } else { 96 + await writable.write(entry); 97 + } 98 + 99 + progress.update(`Unpacking records (${count} entries)`); 100 101 if (yieldToScheduler !== undefined) { 102 await yieldToScheduler();