Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A performance of a page (/settings/integrations/jira) is too slow. #133

Open
hiroshinishio opened this issue Dec 13, 2024 · 6 comments
Open
Labels

Comments

@hiroshinishio
Copy link
Contributor

hiroshinishio commented Dec 13, 2024

Here is the browser network console log screenshots for your reference:

image
Copy link

gitauto-ai bot commented Dec 13, 2024

Click the checkbox below to generate a PR!

  • Generate PR

@hiroshinishio, You have 0 requests left in this cycle which refreshes on 2024-12-23 07:45:40+00:00.
If you have any questions or concerns, please contact us at [email protected].

Copy link

gitauto-for-dev bot commented Dec 13, 2024

Click the checkbox below to generate a PR!

  • Generate PR - gitauto-wes

@hiroshinishio, You have 1 request left in this cycle which refreshes on 2025-01-10 06:40:14+00:00.
If you have any questions or concerns, please contact us at [email protected].

Copy link

gitauto-for-dev bot commented Dec 14, 2024

Hey, I'm a bit lost here! Not sure which file I should be fixing. Could you give me a bit more to go on? Maybe add some details to the issue or drop a comment with some extra hints? Thanks!

Have feedback or need help?
Feel free to email [email protected].

Copy link

image

To analyze the performance issue on the /settings/integrations/jira page, let's focus on the network trace provided:

Key Observations:

  1. Overall Load Time:

    • The total page load time is 15.43 seconds, which is significantly high for a settings page. The DOMContentLoaded event is triggered at 198 ms, but the full load takes much longer, indicating that network requests are a major bottleneck.
  2. Long-Running Requests:

    • Several requests take over 1 second to complete, which is a potential bottleneck:
      • get-installed-repos?installationId=52405871 takes 3.53 seconds.
      • get-installed-repos?installationId=50650258 takes 1.68 seconds.
      • get-installed-repos?installationId=52901975 takes 896 ms.
  3. Repeated Requests:

    • The get-installed-repos endpoint is called multiple times with different installationId parameters. This could indicate redundant data fetching or a need for request optimization.
  4. Request Sizes:

    • The sizes of the requests are relatively small (mostly under 1.5 kB), suggesting that the delay is not due to data transfer size but possibly server processing time or network latency.
  5. Failed or Problematic Calls:

    • All requests have a status of 200, indicating successful responses. However, the performance issue is likely due to the time taken for these requests rather than failed calls.
  6. Timing Anomalies:

    • The ping request takes 1.14 seconds, which is unusually long for a lightweight operation. This might indicate server-side delays or network issues.

Recommendations:

  • Optimize Backend Processing:

    • Investigate the server-side processing of the get-installed-repos endpoint. Consider caching strategies or optimizing database queries to reduce response times.
  • Reduce Redundant Requests:

    • Check if the repeated calls to get-installed-repos can be consolidated or if data can be fetched in a single request to minimize network overhead.
  • Network Latency:

    • Analyze network conditions or server locations that might be contributing to latency. Consider using a CDN or optimizing server response times.
  • Asynchronous Loading:

    • If possible, load non-critical data asynchronously after the initial page load to improve perceived performance.

By addressing these areas, the performance of the /settings/integrations/jira page can be significantly improved.

@gitauto-ai gitauto-ai bot added the gitauto label Dec 24, 2024
Copy link

gitauto-ai bot commented Dec 24, 2024

@hiroshinishio Pull request completed! Check it out here #143 🚀

Note: I automatically create a pull request for an unassigned and open issue in order from oldest to newest once a day at 00:00 UTC, as long as you have remaining automation usage. Should you have any questions or wish to change settings or limits, please feel free to contact [email protected] or invite us to Slack Connect.

Copy link

gitauto-ai bot commented Dec 24, 2024

image

To address the performance issue on the /settings/integrations/jira page, let's delve into the network trace provided:

Detailed Analysis:

  1. Overall Load Time:

    • The total page load time is 15.43 seconds, which is excessive for a settings page. The DOMContentLoaded event occurs at 198 ms, but the full load extends significantly longer, indicating network requests are a primary bottleneck.
  2. Long-Running Requests:

    • Key requests contributing to the delay include:
      • get-installed-repos?installationId=52405871 at 3.53 seconds.
      • get-installed-repos?installationId=50650258 at 1.68 seconds.
      • get-installed-repos?installationId=52901975 at 896 ms.
    • These requests are critical points of latency and should be prioritized for optimization.
  3. Repeated Requests:

    • The get-installed-repos endpoint is invoked multiple times with different installationId parameters. This suggests potential redundancy in data fetching, which could be optimized by consolidating requests or caching results.
  4. Request Sizes:

    • The requests are relatively small (mostly under 1.5 kB), indicating that the delay is likely due to server processing time or network latency rather than data transfer size.
  5. Failed or Problematic Calls:

    • All requests return a status of 200, indicating successful responses. The issue is not with failed calls but with the time taken for these requests.
  6. Timing Anomalies:

    • The ping request takes 1.14 seconds, which is unusually long for a lightweight operation, suggesting possible server-side delays or network issues.

Recommendations:

  • Backend Optimization:

    • Investigate the server-side processing of the get-installed-repos endpoint. Consider implementing caching strategies or optimizing database queries to reduce response times.
  • Reduce Redundant Requests:

    • Evaluate if the repeated calls to get-installed-repos can be consolidated or if data can be fetched in a single request to minimize network overhead.
  • Network Latency:

    • Analyze network conditions or server locations that might be contributing to latency. Consider using a CDN or optimizing server response times.
  • Asynchronous Loading:

    • Load non-critical data asynchronously after the initial page load to improve perceived performance.

By addressing these areas, the performance of the /settings/integrations/jira page can be significantly improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant