apache / apache/hugegraph-computer

[Feature] messages.next() returns a different address object

Open
#277 1 comment 1 reaction 0 assignees View on GitHub
feature
Dominant language
Java
Stars
65
Forks
52
PR merge metrics
No merged PRs in 30d

Description

> always return the same Object is reduce memory pressure and avoid GC

Yep~ But semantically, `messages.next()` returns a different address object more intuitive.
Otherwise, someone who call this function downstream need to clearly know that the same object is returned here, which is not logically intuitive and easy to make mistakes.

Do we have some more elegant solutions?

_Originally posted by @diaohancai in https://github.com/apache/incubator-hugegraph-computer/issues/275#issuecomment-1779336049_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.