Issue 648 - avoid excessive array list resizing #682
Issue 648 - avoid excessive array list resizing #682robertdale merged 1 commit intoJanusGraph:0.2from
Conversation
|
Committer of one or more commits is not listed as a CLA signer, either individual or as a member of an organization. |
7187c2e to
adecc42
Compare
|
@pluradj thanks. I submitted the PR initially using my github user name instead of my name. Since then I have fixed it but I didn't commit with --reset-author. Let me give that a try. |
|
latest commit looks correct to me, might need to pull in @mbrukman if the CLA checker doesn't clear up |
|
thanks @pluradj I wasn't sure if the check will run for each push. But looks like it would according to the conversation I have in other threads. Or may be someone does have to clear manually first? |
| public List<EntryList> execute(final BackendTransaction tx) { | ||
| int total = 0; | ||
| List<EntryList> result = new ArrayList<EntryList>(4); | ||
| List<EntryList> result = new ArrayList(Math.min(getLimit(), queries.size())); |
There was a problem hiding this comment.
Should be typed. e.g. new ArrayList<>
920a1e2 to
b060ed9
Compare
|
The issue is that there's a difference in GitHub in terms of who the "author" and "committer" are (as they could be different people); the CLA checker is very simple: it verifies that both of these are each on the CLA verbatim; in this case, they are: which means the first one is OK, and the second one is not. You can see this yourself for the most-recent commit in your git tree via: or for the full repo via: Note the In addition, your You need to copy-paste and run these commands as-is, verbatim, as per the docs: And possibly remove / adjust any config that could be overriding this. Note that the repo-local config should be overriding your global config in this case, so be sure to set both name and email in the repo to take precedence. If you're still having an issue, we can look into it further, but we haven't had this happen and it was fixed after using these commands, so I'm hopeful this should solve the problem for you. |
|
@pencal – congrats! You now have a green CLA tag on this PR. Please keep doing what you did in this PR going forward, this is the correct course of action. |
d91843e to
c18d725
Compare
sjudeng
left a comment
There was a problem hiding this comment.
Is the added test relevant to the array list resizing fix? The new test passes for me even with the original implementation.
|
@sjudeng the added test is more of a regression. That said, I shall add a test case to test out the case where the limit is accounted for. |
|
@pencal Can you rebase this on 0.2 and then merge to master on a new PR? |
|
@robertdale why is this necessary? This PR is already merging to master and my branch was based off Master right after 0.2 was cut. |
|
@pencal We would like to target the lowest maintenance branch and then merge up. You should only need to change the base of this PR to 0.2 [1]. I can handle the merge. Also, understand that JanusGraph 0.2 will be on TinkerPop 3.2.x while JanusGraph 0.3 will be on TinkerPop 3.3.x which are somewhat incompatible and could have different release timelines. |
|
I see. I will rebase, close this PR and open a new one as suggested. Thanks for giving me the context. |
|
@pencal No need to close. Just change the base branch as shown in that link! |
Signed-off-by: Kim Pang Lei <ckplei@gmail.com>
|
@robertdale done. |
Issue: #648
Signed-off-by: Kim Pang Lei ckplei@gmail.com
Thank you for contributing to JanusGraph.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
master)?For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check Travis CI for build issues and submit an update to your PR as soon as possible.