incubator-hugegraph-computer icon indicating copy to clipboard operation
incubator-hugegraph-computer copied to clipboard

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

Open javeme opened this issue 2 years ago • 1 comments
trafficstars

          > 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

javeme avatar Oct 29 '23 03:10 javeme

We hope that after the memory management module is added, this confusion can be solved.

Great~ Could you disclose the design for the memory management?

diaohancai avatar Oct 29 '23 05:10 diaohancai