Skip to content

feat(perf): optimize base64 thumbnail generation (#4012) #4038

Description

@mrveiss

Problem

Base64 thumbnail encoding blocks the main thread for large images.

Solution

  • Move thumbnail encoding to Web Worker
  • Use OffscreenCanvas for resize operations
  • Cache results with 24h TTL

Targets

  • Screenshot galleries
  • Document preview thumbnails
  • Image upload previews

Impact

  • 200-400ms main thread blocking eliminated
  • 30-60% faster thumbnail display

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions