wForget opened a new issue, #4738:
URL: https://github.com/apache/datafusion-comet/issues/4738

   ### What is the problem the feature request solves?
   
   During profiling analysis while running tpch benchmark locally, I found that 
the timer in `ScanExec::get_next_batch` was expensive.
   
   <img width="1834" height="429" alt="Image" 
src="https://github.com/user-attachments/assets/5afec874-6e9c-4778-915e-c765dc8ace6a";
 />
   
   
   
   ### Describe the potential solution
   
   We can calculate the timer only in the `if current_batch.is_none` closure to 
avoid excessive timer calls in `ScanExec::get_next_batch`
   
   ### Additional context
   
   _No response_


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