tangled
alpha
login
or
join now
mary.my.id
/
boat
22
fork
atom
handy online tools for AT Protocol
boat.kelinci.net
atproto
bluesky
atcute
typescript
solidjs
22
fork
atom
overview
issues
pulls
pipelines
fix: prevent memory build-up when unpacking
mary.my.id
9 months ago
02bbc001
bf56e39e
verified
This commit was signed with the committer's
known signature
.
mary.my.id
SSH Key Fingerprint:
SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c=
+8
-2
1 changed file
expand all
collapse all
unified
split
src
views
repository
repo-archive-unpack.tsx
+8
-2
src/views/repository/repo-archive-unpack.tsx
···
88
88
data: JSON.stringify(record, null, 2),
89
89
});
90
90
91
91
-
progress.update(`Unpacking records (${count} entries)`);
92
92
-
writable.write(entry);
93
91
count++;
92
92
+
93
93
+
if (count % 100 !== 0) {
94
94
+
writable.write(entry);
95
95
+
} else {
96
96
+
await writable.write(entry);
97
97
+
}
98
98
+
99
99
+
progress.update(`Unpacking records (${count} entries)`);
94
100
95
101
if (yieldToScheduler !== undefined) {
96
102
await yieldToScheduler();