SemyonSinchenko opened a new pull request, #60790: URL: https://github.com/apache/spark/pull/60790
### What changes were proposed in this pull request? The `Map[VertexId, Long]` in GraphX LabelPropagation is replaced by the GX' `OpenHashMap`. Inside the `mergeMessages` the left argument is modified in place (no new allocation, no GC). Minor change: replace scala' ideomatic code by plain Java while loop resulted in ~1.2x better perf. and 20% less allocations. ### Why are the changes needed? Around 1000x faster on first iteration, around 7x faster on later iterations. In the local JMH test allocations 8GB -> 15MB. Still 2.5x slower than implementations in GraphFrames fork (based on `Vector`) but keeps the message size around 900x smaller on late iterations. Better of two approaches (Spark and GraphFrames). ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing scalatest. ### Was this patch authored or co-authored using generative AI tooling? Claude Code (Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
