* "unbounded array" - are you referring to `records`?
* If so, is the memory of `records` too large? Or is it that `records[i].pathname` has a reference to `fields[7]`, AND v8 will retain all copies of `fields` until the loop is done?
Do you think this code would be more GC-friendly?
```
let count = 0;
const MAX = 1000;
const flushedRecords = [];
for await (const line of readlineStream) {
const fields = line.split('\t');
const httpStatus = Number(fields[5]);
if (httpStatus < 200 || httpStatus > 299) continue;
records.push({
pathname: fields[7],
referrer: fields[8],
// ...
});
if(count == MAX || isLastLine(line)){
flushedRecords.push([...records]);
records = [];
count = 0;
} else {
count++;
}
}```
Or were you thinking something totally different?