Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
817a2db8
Commit
817a2db8
authored
Aug 22, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve performance of Gitlab::BacktraceCleaner
Prefer Regexp#match?(String) over String#match(Regexp).
parent
d91c949f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/pl-perf-bt-cleaner-regexp-match.yml
changelogs/unreleased/pl-perf-bt-cleaner-regexp-match.yml
+5
-0
lib/gitlab/backtrace_cleaner.rb
lib/gitlab/backtrace_cleaner.rb
+1
-1
No files found.
changelogs/unreleased/pl-perf-bt-cleaner-regexp-match.yml
0 → 100644
View file @
817a2db8
---
title
:
Improve performance of Gitlab::BacktraceCleaner
merge_request
:
40180
author
:
type
:
performance
lib/gitlab/backtrace_cleaner.rb
View file @
817a2db8
...
@@ -31,7 +31,7 @@ module Gitlab
...
@@ -31,7 +31,7 @@ module Gitlab
return
unless
backtrace
return
unless
backtrace
Array
(
Rails
.
backtrace_cleaner
.
clean
(
backtrace
)).
reject
do
|
line
|
Array
(
Rails
.
backtrace_cleaner
.
clean
(
backtrace
)).
reject
do
|
line
|
line
.
match
(
IGNORED_BACKTRACES_REGEXP
)
IGNORED_BACKTRACES_REGEXP
.
match?
(
line
)
end
end
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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