atmosphere explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

yield every 10k records to prevent UI freeze during CAR parsing

Juliet 012867c8 6dbf4732

+3
+3
src/views/car/explore.tsx
··· 64 64 const stream = file.stream(); 65 65 const repo = fromStream(stream); 66 66 try { 67 + let count = 0; 67 68 for await (const entry of repo) { 68 69 try { 69 70 let list = collections.get(entry.collection); ··· 81 82 cid: entry.cid.$link, 82 83 record, 83 84 }); 85 + 86 + if (++count % 10000 === 0) await new Promise((resolve) => setTimeout(resolve, 0)); 84 87 } catch { 85 88 // Skip entries with invalid data 86 89 }