guan404ming opened a new pull request, #75864:
URL: https://github.com/apache/airflow/pull/75864

   <!-- SPDX-License-Identifier: Apache-2.0
         https://www.apache.org/licenses/LICENSE-2.0 -->
   
   <!--
   Thank you for contributing!
   
   Please provide above a brief description of the changes made in this pull 
request.
   Write a good git commit message following this guide: 
https://chris.beams.io/posts/git-commit/
   
   Please make sure that your code changes are covered with tests.
   And in case of new features or big changes remember to adjust the 
documentation.
   
   For user-facing UI changes, please attach before/after screenshots (or a 
short
   screen recording) so reviewers can assess the visual impact.
   
   Feel free to ping (in general) for the review if you do not see reaction for 
a few days
   (72 Hours is the minimum reaction time you can expect from volunteers) - we 
sometimes miss notifications.
   
   In case of an existing issue, reference it using one of the following:
   
   * closes: #undefined
   * related: #undefined
   -->
   
   ## Why
   
   - Every UI page downloads the 1.5 MB graph layout engine twice
   - That slows the first load of every page, not only the graph view
   
   ## How
   
   - Import only the ELK API, since the hook already supplies its own worker
   - Keep the same-origin blob worker from #65031 as is
   
   ## Results
   
   Local breeze (postgres, example Dags), median of 5 runs, cold cache.
   
   The entry chunk goes from 7.86 MB to 6.41 MB (gzip 2.31 MB to 1.87 MB).
   
   Lighthouse, desktop preset:
   
   | Page | Metric | Before | After | Change |
   |---|---|---|---|---|
   | Home | Score | 66 | 72 | +6 |
   | Home | FCP | 2170 ms | 1776 ms | -18% |
   | Home | LCP | 2843 ms | 2330 ms | -18% |
   | Home | Transfer | 2314 KB | 1882 KB | -19% |
   | Dags | Score | 57 | 64 | +7 |
   | Dags | FCP | 2168 ms | 1767 ms | -18% |
   | Dags | LCP | 2771 ms | 2416 ms | -13% |
   | Dags | Transfer | 2322 KB | 1890 KB | -19% |
   
   Graph view, Playwright, 4x CPU throttling:
   
   | Dag | Metric | Before | After | Change |
   |---|---|---|---|---|
   | `example_bash_operator` | Graph rendered | 5051 ms | 3966 ms | -21% |
   | `example_bash_operator` | Long tasks over 50 ms | 3275 ms | 2457 ms | -25% 
|
   | `example_complex` | Graph rendered | 5045 ms | 3922 ms | -22% |
   | `example_complex` | Long tasks over 50 ms | 3393 ms | 2464 ms | -27% |
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change below checkbox to `[X]` followed by the name of the tool, uncomment 
the "Generated-by".
   -->
   
   - [x] Yes, with help of Claude Code Opus 5.5 following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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

Reply via email to