Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-graph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-graph
Commits
c333b9cc
Commit
c333b9cc
authored
1 year ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary copy of contentIsSkipped
It adds a 6s delay to every gRPC request
parent
38547345
No related branches found
Branches containing commit
Tags
v3.2.1
Tags containing commit
1 merge request
!345
Remove unnecessary copy of contentIsSkipped
Pipeline
#6164
failed
1 year ago
Stage: external
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/main/java/org/softwareheritage/graph/SwhGraphProperties.java
+1
-1
1 addition, 1 deletion
...n/java/org/softwareheritage/graph/SwhGraphProperties.java
with
1 addition
and
1 deletion
java/src/main/java/org/softwareheritage/graph/SwhGraphProperties.java
+
1
−
1
View file @
c333b9cc
...
...
@@ -109,7 +109,7 @@ public class SwhGraphProperties implements FlyweightPrototype<SwhGraphProperties
((
contentLength
instanceof
LongMappedBigList
)
?
((
LongMappedBigList
)
contentLength
).
copy
()
:
contentLength
),
(
contentIsSkipped
!=
null
)
?
contentIsSkipped
.
copy
()
:
null
,
contentIsSkipped
,
// Don't need to copy because it is eagerly loaded in RAM, not mmapped
((
authorId
instanceof
IntMappedBigList
)
?
((
IntMappedBigList
)
authorId
).
copy
()
:
authorId
),
((
committerId
instanceof
IntMappedBigList
)
?
((
IntMappedBigList
)
committerId
).
copy
()
:
committerId
),
((
messageBuffer
instanceof
ByteMappedBigList
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment