gengliangwang edited a comment on pull request #30221:
URL: https://github.com/apache/spark/pull/30221#issuecomment-720397753


   So, if there is a scenario that calls `hasNextRow` multiple times, the code 
changes in https://github.com/apache/spark/pull/29145 also bring in perf 
regression:
   
   -  Before https://github.com/apache/spark/pull/29145, there is no 
deserialization in the method `hasNext` 
https://github.com/apache/spark/pull/29145/files#diff-a70c279fcf47a5f521902ddd83b7f4dd0f594c14b0f85240705faa83da79d859L104.
 
   
   - After https://github.com/apache/spark/pull/29145, there is always 
deserialization if there is a next row: 
https://github.com/apache/spark/pull/29145/files#diff-22181c0e0050f9694efac388063535cf77e92a82dd962fec3f8507dfae45e52cR185
   
   I am sorry but shall we consider reverting 
https://github.com/apache/spark/pull/29145? CC @MaxGekk @cloud-fan 
   


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

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