zenoyang opened a new pull request, #20234:
URL: https://github.com/apache/doris/pull/20234

   
   
   ## Proposed changes
   
   Avoid copying column elements when join build ouput block.
   
   `*origin_block` is a temporary object, so we can directly move it's column 
to output_block, avoid calling `insert_range_from` method, and generate 
unnecessary copies.
   
   I added a timer to the `_build_output_block` method, and the time-consuming 
comparison before and after optimization is as follows:
   
   env: 1FE 1BE
   sql: SSB Q3.1
   
   before:
   ```
    - JoinBuildOutputBlockTimer: 59.603ms
      - JoinBuildOutputBlockTimer: 48.529ms
        - JoinBuildOutputBlockTimer: 34.444ms
   ```
   
   after:
   ```
    - JoinBuildOutputBlockTimer: 3.956ms
      - JoinBuildOutputBlockTimer: 4.833ms
        - JoinBuildOutputBlockTimer: 4.152ms
   ```
   
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to