-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oltp traversal: optimize id2code for number id #1623
Conversation
Change-Id: I06a4139f89cb891a7323810bd4da43a3152069df
Change-Id: I3976278f889890c4e1429457e4f129bed07b4559
Codecov Report
@@ Coverage Diff @@
## master #1623 +/- ##
============================================
- Coverage 63.26% 63.18% -0.09%
- Complexity 6703 6711 +8
============================================
Files 418 418
Lines 34454 34497 +43
Branches 4764 4775 +11
============================================
- Hits 21799 21797 -2
- Misses 10407 10449 +42
- Partials 2248 2251 +3
Continue to review full report at Codecov.
|
// Java Collection Framework | ||
ARRAY(1, "array"), | ||
// One key with one int value | ||
INT(2, "int"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code is 1
@@ -152,6 +151,11 @@ public Traverser(Id sourceV, Id targetV, Directions dir, | |||
this.capacity = capacity; | |||
} | |||
|
|||
public PathSet traverse(boolean all) { | |||
return this.record.sourcesLessThanTargets() ? | |||
this.forward(true) : this.backward(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass param all
@LiJie20190102 maybe the idMapping collection is too large, then cause OOM. you can try to check the large objects this way |
After my testing, I found that there are indeed more map objects created. That is to say, when I use the String type, I create more map objects; But when I switched to the Number type, there were fewer map objects. I encountered the above issue while executing 'AllShortestPath' (org.apache.hugegraph.api.traverser.AllShortestPathsAPI#get), |
No description provided.