Skip to content

feat(live-previewer): limit number of log messages - #2664

Open
spliffone wants to merge 1 commit into
mainfrom
feat/live-previewer-performance
Open

feat(live-previewer): limit number of log messages#2664
spliffone wants to merge 1 commit into
mainfrom
feat/live-previewer-performance

Conversation

@spliffone

@spliffone spliffone commented Aug 31, 2026

Copy link
Copy Markdown
Member

Extend the live-previewer to limit the logs.

Problem

While playing with maplibre to analyze a rendering issue I used the logEvent and to see what is happening during during resize and other map events. Logging does events slowed down the browser within seconds since the amount of data raised to multiple MB.

Proposal

We create a ring buffer to limit the amount of data and also limit the size of the log message so we don't run into this issue anymore.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@spliffone
spliffone requested review from a team as code owners August 31, 2026 19:20
@spliffone
spliffone force-pushed the feat/live-previewer-performance branch from 029436d to 7cdb051 Compare August 31, 2026 20:13
@spliffone spliffone added the enhancement Topics that make the project better label Sep 1, 2026
@dr-itz

dr-itz commented Sep 1, 2026

Copy link
Copy Markdown
Member

not sure we need this: logEvent() is meant as a way to demo event handling. If your playing with stuff or debugging, the good old console.log() is the way to go 🤷

@spike-rabbit spike-rabbit added this to the 51.x milestone Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Topics that make the project better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants