You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by "craigcondit (via GitHub)" <gi...@apache.org> on 2023/06/22 16:17:15 UTC

[GitHub] [yunikorn-core] craigcondit commented on a diff in pull request #548: [YUNIKORN-1716] Improve the performance of baseNodeCollection.getNodeIteratorInternal()

craigcondit commented on code in PR #548:
URL: https://github.com/apache/yunikorn-core/pull/548#discussion_r1238760158


##########
pkg/scheduler/objects/node_iterator.go:
##########
@@ -30,6 +32,8 @@ type NodeIterator interface {
 	Next() *Node
 	// reset the iterator to a clean state
 	Reset()
+
+	ForEachNode(func(*Node) bool)

Review Comment:
   Java's Iterator has forEachRemaining(), I don't see an issue. 



-- 
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: reviews-unsubscribe@yunikorn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org