Skip to content

ComponentTracker is very slow #18130

@Freeman656

Description

@Freeman656

Description of the bug

When using Vaadin > 24 is dev mode, the ComponentTracker is very slow which make the whole application very slow.

This is annoying most of the time for very low reward (knowing where the component has been created/attached is helpful just a few times during development).
This is also very noticable when using JProfiler because the recording streches up all superficial calls (see attachment)

image

Expected behavior

The most practical way I see it is by adding a property to avoid the tracking, in addition to the productionMode.
This would solve the performance issue if needed by the developer, and would also still allow other to continue the tracking.

Minimal reproducible example

The best way is to create a page with ~100 select containing each ~1000 elements with custom renderer (this is not my case but this would trigger the performance issue)

Versions

  • Vaadin / Flow version: 24.2.3
  • Java version: 21.0.1

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done / Pending Release

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions