Skip to content

Commit

Permalink
Optimize csv_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrsmirn committed Dec 18, 2023
1 parent 320e0a2 commit 450a180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/parser/csv_parser/csv_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ std::string CSVParser::GetUnparsedLine(const unsigned long long line_index) {

std::vector<std::string> CSVParser::ParseString(const std::string& s) const {
std::vector<std::string> tokens;
tokens.reserve(number_of_columns_);
boost::escaped_list_separator<char> list_sep(escape_symbol_, separator_, quote_);
boost::tokenizer<boost::escaped_list_separator<char>> tokenizer(s, list_sep);

Expand Down

0 comments on commit 450a180

Please sign in to comment.