Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
b504fb2c
Commit
b504fb2c
authored
Dec 08, 2021
by
Waqar Ahmed
Committed by
Tomaz Canabrava
Dec 12, 2021
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/history/compact/CompactHistoryScroll.cpp
View file @
b504fb2c
...
...
@@ -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_
insert
er
(
_cells
)
);
_cells
.
insert
(
_cells
.
end
(),
a
,
a
+
count
);
// store the length of line
_lineLengths
.
push_back
(
count
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment