agoncharuk opened a new issue, #14790:
URL: https://github.com/apache/iceberg/issues/14790

   ### Apache Iceberg version
   
   1.9.1
   
   ### Query engine
   
   Trino
   
   ### Please describe the bug 🐞
   
   Hello Iceberg community,
   
   I would like to re-raise the issue from 
https://github.com/apache/iceberg/pull/11895.
   
   We are observing unreasonably long planning times (seconds) when using Trino 
on large tables on machines with 192 CPUs.
   Profiling shows that the time is consumed by `ConcurrentLinkedQueue.size()` 
which is called on each `hasNext()`, and internally runs `queue.size()` 
multiple times (2 * Number of processors times), which essentially makes the 
iteration O(N^2).
   Given that the change in the original PR is quite simple and 
straightforward, any chance the fix can be merged?
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [x] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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