Skip to content

perf: optimize query array filtering in InMemoryStorage#278

Open
vincerevu wants to merge 6 commits intosteel-dev:mainfrom
vincerevu:main
Open

perf: optimize query array filtering in InMemoryStorage#278
vincerevu wants to merge 6 commits intosteel-dev:mainfrom
vincerevu:main

Conversation

@vincerevu
Copy link
Copy Markdown

What

Condense multiple sequential .filter() passes in InMemoryStorage.query into a single pass.

Why

The previous implementation:

  • created a new array via [...this.events]
  • applied up to 5 separate .filter() calls

This results in repeated iterations and unnecessary intermediate allocations.

Change

  • combine filtering logic into a single pass
  • avoid intermediate array copies
  • preserve existing behavior

Impact

  • reduces repeated O(n) iterations
  • avoids extra memory allocations
  • improves performance for larger event sets

Verification

  • built locally with npm run build
  • behavior remains unchanged

Adds an `aria-label` to the icon-only console toggle button in `SessionContainer`
so screen readers can identify the action. Also adds a `title` attribute to provide
a tooltip for mouse users.
…query-9683142271173482330

perf: optimize query array filtering in in-memory-storage
…-10652984871791702189

fix(ui): add accessibility attributes to console toggle button
@github-actions github-actions bot added the ui label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant