Skip to content

PERF: Email rendering blocks on sequential remote image fetching #916

@andrinoff

Description

@andrinoff

Is your feature request related to a problem?

In view/html.go, remote images are fetched one at a time with 5-second timeout each. An email with 20 inline images takes up to 100 seconds to fully render. Image cache is only 20 items LRU, so viewing several rich emails evicts previous results.

Describe the solution you'd like

  • Fetch remote images in parallel with configurable concurrency limit
  • Increase/configure LRU cache size
  • Stream HTML parsing instead of full DOM parse per email
  • Add memory cap on total image data per email
  • Show progressive rendering (text first, images as they load)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-responseWaiting on issue author replyperformancePerformance improvementstaleNo activity for extended period

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions