use unique_ptr<string> in ColStringValue to save space in variant

This commit is contained in:
2021-08-17 15:04:27 +02:00
parent 7685d0bb37
commit 0a0e4af8b3
5 changed files with 28 additions and 29 deletions

View File

@@ -98,7 +98,8 @@ int Table::load_csv_file(const std::string &filename) {
infile.close();
if (file_size > 0) {
m_rows.reserve(m_rows.size() + int(file_size / line_size * 1.1));
auto new_size = m_rows.size() + int(file_size / line_size * 1.20);
m_rows.reserve(new_size);
}
// load rows