Commit b504fb2c authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Tomaz Canabrava
Browse files

Use std::deque::insert directly instead of std::copy

Faster than using copy with back_inserter
parent 27ef2148
Pipeline #108815 passed with stage
in 2 minutes and 2 seconds
......@@ -41,7 +41,7 @@ void CompactHistoryScroll::removeLinesFromTop(int lines)
void CompactHistoryScroll::addCells(const Character a[], const int count)
std::copy(a, a + count, std::back_inserter(_cells));
_cells.insert(_cells.end(), a, a + count);
// store the length of line
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment