Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playback: improve /list response time (#3637) #4096

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

aler9
Copy link
Member

@aler9 aler9 commented Jan 1, 2025

Response times of the /list endpoint were slow because the duration of each segment was computed from scratch by summing the duration of each of its parts.

This is improved by storing the duration of the overall segment in the header and using that, if available.

Copy link

codecov bot commented Jan 1, 2025

Codecov Report

Attention: Patch coverage is 52.72727% with 52 lines in your changes missing coverage. Please review.

Project coverage is 56.12%. Comparing base (07af42e) to head (501b614).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/recorder/format_fmp4_segment.go 46.42% 20 Missing and 10 partials ⚠️
internal/playback/segment_fmp4.go 60.00% 14 Missing and 2 partials ⚠️
internal/conf/path.go 0.00% 2 Missing and 1 partial ⚠️
internal/playback/on_list.go 66.66% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4096      +/-   ##
==========================================
- Coverage   56.15%   56.12%   -0.03%     
==========================================
  Files         199      199              
  Lines       20464    20539      +75     
==========================================
+ Hits        11492    11528      +36     
- Misses       8114     8141      +27     
- Partials      858      870      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aler9 aler9 force-pushed the feature/list-performance branch 2 times, most recently from 274d9d3 to a58b39e Compare January 2, 2025 11:28
@aler9 aler9 force-pushed the feature/list-performance branch 4 times, most recently from 9959ea7 to 16e5e85 Compare January 3, 2025 11:49
Response times of the /list endpoint were slow because the duration of
each segment was computed from scratch by summing the duration of each
of its parts.

This is improved by storing the duration of the overall segment in the
header and using that, if available.
@aler9 aler9 force-pushed the feature/list-performance branch from 16e5e85 to 501b614 Compare January 3, 2025 12:03
@aler9 aler9 merged commit ac0ddc9 into main Jan 3, 2025
6 of 8 checks passed
@aler9 aler9 deleted the feature/list-performance branch January 3, 2025 12:08
Copy link
Contributor

github-actions bot commented Jan 3, 2025

This issue is mentioned in release v1.11.0 🚀
Check out the entire changelog by clicking here

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.

1 participant