Skip to content

Conversation

@pdesoyres-cc
Copy link
Contributor

@pdesoyres-cc pdesoyres-cc commented Jan 6, 2026

What this PR do?

Fixes #1627

Context: Logs UI lags and sometimes crashes when many logs are coming fast. This occurs on firefox only ( and also when dev tools are not opened)

The proposed solution is to removes that stress on the cc-logs refresh process by removing the size-based buffer limit in favor of time-based limit only.

How to review

  • Use sandbox
  • Select live range
  • See the UI not lagging anymore

@pdesoyres-cc pdesoyres-cc self-assigned this Jan 6, 2026
@pdesoyres-cc pdesoyres-cc added the bug Something isn't working label Jan 6, 2026
@pdesoyres-cc pdesoyres-cc force-pushed the logs/ff-issue branch 2 times, most recently from dc78f01 to 7c63cb1 Compare January 6, 2026 13:27
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/logs/ff-issue/index.html.

This preview will be deleted once this PR is closed.

Copy link
Member

@roberttran-cc roberttran-cc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I'm not sure it there are possible side effects, I tested this fix (comparing with & without it) and worked well for me. GG!

Copy link
Member

@Galimede Galimede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Pierre, I tried to test it in the sandbox but whether with or without the fix my firefox wasn't crashing. So, I tested it locally in the console right away and it works fine. 😄
Thanks for the fix and GG, LGTM! 💪

Remove size-based buffer limit in favor of time-based throttling.
Reduce buffer timeout from 1s to 500ms.
Fixes #1627
@pdesoyres-cc pdesoyres-cc merged commit d492147 into master Jan 13, 2026
7 checks passed
@pdesoyres-cc pdesoyres-cc deleted the logs/ff-issue branch January 13, 2026 10:52
@github-actions
Copy link
Contributor

🔎 The preview has been automatically deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate performance issue

3 participants