uros-b opened a new pull request, #57547:
URL: https://github.com/apache/spark/pull/57547

   ### What changes were proposed in this pull request?
   Replaces `filter(_.resourcesInfoUsed.nonEmpty).nonEmpty` with 
`exists(_.resourcesInfoUsed.nonEmpty)` in `MasterPage` when deciding whether to 
show the resources column.
   
   ### Why are the changes needed?
   `state.workers` is an `Array[WorkerInfo]`; the `filter(...).nonEmpty` form 
allocates a throwaway filtered array and scans every worker, while `exists` 
allocates nothing and short-circuits on the first match. The resulting Boolean 
is identical.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Equivalent, behavior-preserving change on a UI code path. No new tests 
needed.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Generated-by: Claude Code (Opus 4.8)


-- 
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]

Reply via email to