-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Open
Copy link
Labels
Description
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
-
@-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
-
Hashtag processing:
- Measure time for tag parsing and formatting
- Check database query performance for tag lookups
- Determine impact of posts with many hashtags
-
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)