**Describe the situation**
https://markify.dev/p/zfrQMV2/text

**How to reproduce**
On aws `c5ad.24xlarge` run a query:

```
SET max_memory_usage = '100G', max_threads = 1000, max_insert_threads = 96

INSERT INTO wikistat WITH
    parseDateTimeBestEffort(extract(toLowCardinality(_path), 'pageviews-([\\d\\-]+)\\.gz$')) AS time,
    splitByChar(' ', line) AS values,
    splitByChar('.', values[1]) AS projects
SELECT
    time,
    projects[1] AS project,
    projects[2] AS subproject,
    values[2] AS path,
    CAST(values[3], 'UInt64') AS hits
FROM s3('https://....s3.eu-central-1.amazonaws.com/wikistat/original/*.gz', '...', '...', LineAsString, auto)
WHERE length(values) >= 3
```

Performance is not bad (22 million rows are inserted per second) but can be better.
{
    IRowInputFormat::resetParser();
}
void LineAsStringRowInputFormat::readLineObject(IColumn & column)
{
    DB::Memory<> object;
    char * pos = in->position();
    bool need_more_data = true;
    while (loadAtPosition(*in, object, pos) && need_more_data)
    {
        pos = find_first_symbols<'\n'>(pos, in->buffer().end());
        if (pos == in->buffer().end())
            continue;
        if (*pos == '\n')
            need_more_data = false;
        ++pos;
    }
    saveUpToPosition(*in, object, pos);
    loadAtPosition(*in, object, pos);
    
    column.insertData(object.data(), object.size() - 1);
}
bool LineAsStringRowInputFormat::readRow(MutableColumns & columns, RowReadExtension &)