Skip to content

Investigate: Performance impact of @-mention lookups and hashtags on publishing #2567

@pfefferle

Description

@pfefferle

Description

Investigate whether @-mention lookups and hashtag processing are causing slowdowns during the post publishing process.

Background

When publishing posts, the plugin performs:

  • Webfinger lookups for @-mentions to resolve actor URLs
  • Hashtag processing and formatting
  • Both operations may involve network requests or database queries

These operations could potentially:

  • Delay post publication
  • Cause timeouts on posts with many mentions/tags
  • Impact user experience during publishing

Investigation Points

  1. @-mention lookups:

    • Measure time for Webfinger resolution per mention
    • Check if lookups happen synchronously during publish
    • Determine impact of multiple mentions in a single post
    • Check if failed lookups cause delays
  2. Hashtag processing:

    • Measure time for tag parsing and formatting
    • Check database query performance for tag lookups
    • Determine impact of posts with many hashtags
  3. Overall impact:

    • Measure total publishing time with/without mentions and tags
    • Identify any blocking operations
    • Check if operations could be moved to background jobs

Possible Optimizations

If performance issues are found:

  • Move Webfinger lookups to background processing
  • Cache mention lookups
  • Batch process hashtags
  • Add configurable timeouts
  • Queue federation activities asynchronously

Success Criteria

  • Documented performance measurements for mention/hashtag processing
  • Identified bottlenecks (if any)
  • Recommendations for optimization (if needed)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions