Skip to content

Optimize search result DTO conversion#155

Draft
Bobbls wants to merge 1 commit into
lostb1t:mainfrom
Bobbls:codex/optimize-search-results
Draft

Optimize search result DTO conversion#155
Bobbls wants to merge 1 commit into
lostb1t:mainfrom
Bobbls:codex/optimize-search-results

Conversation

@Bobbls
Copy link
Copy Markdown

@Bobbls Bobbls commented Apr 19, 2026

Summary

  • page Stremio metadata before converting results to DTOs
  • build lightweight search DTOs directly from Stremio metadata instead of running Jellyfin's full IDtoService pipeline

Why

Search results are transient Stremio items. Running them through IDtoService.GetBaseItemDto can dominate request time, especially when the client asks for a small page but Gelato converts the full result set first.

In local testing, one 'star' search moved from about 603ms search / 4859ms total to about 1665ms search / 1665ms total. Remaining slow cases tracked upstream Stremio/addon latency.

Validation

  • dotnet build Gelato.csproj

@Bobbls Bobbls force-pushed the codex/optimize-search-results branch from 2721881 to ee1b51f Compare April 19, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants