vyommani commented on PR #671:
URL: https://github.com/apache/ranger/pull/671#issuecomment-3303221109

   > I am not very familiar with streams but based on my past experience, 
streams can be much slower than a for loop / iterator and also creates GC 
pressure due to its own intermediate objects it creates. Exceptions to this is 
when using parallel streams where benefits of parallelism exist. We should 
evaluate performance impact of replacing loops with streams since auth/policy 
evaluation is very performance sensitive
   
   Thanks for raising the performance considerations for auth/policy evaluation 
and concerns about streams, such as GC pressure from intermediate objects. 
However, streams can sometimes outperform traditional loops due to JVM 
optimizations like lazy evaluation and operation fusion, particularly for 
larger datasets. The performance impact depends on the specific workload, It 
will be great if you spent some time on this as Madhan suggested.
   
   


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

Reply via email to