Skip to content

Performance: Blocking I/O in request cycle (OG image generation, icon processing) #39

@philipithomas

Description

@philipithomas

Description

Several CPU/IO-intensive operations block the request cycle:

  1. OG image generation via Grover/Puppeteer in app/controllers/public_posts_controller.rb:31-38 blocks the request on cache miss
  2. Icon generation via Vips in app/models/account.rb:182-194 processes images synchronously during photo upload
  3. Photo URL fetching via URI.open in app/models/account.rb:253-258 blocks during OAuth signup

Recommendation

Move image processing and external URL fetching to background jobs. For OG images, consider pre-generating on post publish.

Severity

Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions