faster csv loading

This commit is contained in:
2021-08-23 18:18:03 +02:00
parent a454e215eb
commit be89b55b17
5 changed files with 37 additions and 22 deletions

View File

@@ -40,8 +40,7 @@ int ColBooleanValue::compare(ColValue &other) {
return m_bool == other.getBoolValue() ? 0 : m_bool && !other.getBoolValue() ? -1 : 1; // true first
}
Row::Row(const Row &other) : m_columns(other.m_columns.size(), ColNullValue()) {
// PERF here we first set cols null and then immediately replace it
Row::Row(const Row &other) : m_columns(other.m_columns.size()) {
for (int i = 0; i < other.m_columns.size(); i++) {
if (other[i].isNull())
continue; // for null NOP