Skip to content

Commit

Permalink
Fix performance regression introduced with the parsing callback feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgh committed May 4, 2015
1 parent 2b82576 commit ea3e922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -3964,7 +3964,7 @@ class basic_json
auto value = parse_internal(keep);
if (keep and keep_tag and not value.is_discarded())
{
result[key] = value;
result[key] = std::move(value);
}
}
while (last_token == lexer::token_type::value_separator);
Expand Down Expand Up @@ -4015,7 +4015,7 @@ class basic_json
auto value = parse_internal(keep);
if (keep and not value.is_discarded())
{
result.push_back(value);
result.push_back(std::move(value));
}
}
while (last_token == lexer::token_type::value_separator);
Expand Down

0 comments on commit ea3e922

Please sign in to comment.