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

   # Proposed changes
   
   ~~Issue Number: close #xxx~~
   
   ## Problem summary
   
   Currently, it takes too much time to build BE from source in workflow 
environments (P0/P1) which affects the efficiency of daily development.
   
   We can measure the time by executing the following command.
   ```shell
   time EXTRA_CXX_FLAGS='-O3' BUILD_TYPE=ASAN ./build.sh --be --fe --clean -j 
"$(nproc)"
   ```
   
   This PR optimizes the compilation time by exploiting the following methods.
   1. Reduce the codegen by removing useless `std::visit`.
   2. Disable the optimization for some template functions which are 
instantiated by `std::visit` conditionally (_If we use `GCC` to build the 
project with `asan`_).
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: 
       - [ ] Yes
       - [ ] No
       - [ ] I don't know
   3. Has unit tests been added:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   4. Has document been added or modified:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   5. Does it need to update dependencies:
       - [ ] Yes
       - [ ] No
   6. Are there any changes that cannot be rolled back:
       - [ ] Yes (If Yes, please explain WHY)
       - [ ] No
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) 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: [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