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

feat: export period combiner #5324

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

baconz
Copy link
Contributor

@baconz baconz commented Jun 16, 2023

See #5307

@google-cla
Copy link

google-cla bot commented Jun 16, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@baconz baconz force-pushed the export_period_combiner branch from 5d2b59c to 63533da Compare June 16, 2023 16:49
@baconz baconz changed the title Export period combiner enhancement: export period combiner Jun 16, 2023
@baconz baconz changed the title enhancement: export period combiner feat: export period combiner Jun 16, 2023
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@joeyparrish
Copy link
Member

@baconz, long time, no see! Thanks for the PR. Looks good to me.

@joeyparrish
Copy link
Member

JFYI, it has been proposed to trash this class in v5 and go back to modeling periods explicitly in the manifest structure. We haven't committed to it, but it is a breaking change we're considering in the next ~12 months.

@joeyparrish joeyparrish merged commit e9ba2f4 into shaka-project:main Jun 16, 2023
@baconz
Copy link
Contributor Author

baconz commented Jun 16, 2023

Thanks for getting this out so quickly!

Interesting about going back to the old manifest format. What is the reasoning for switching back?

@joeyparrish
Copy link
Member

Primarily that period combiner is complicated and uses more memory than other approaches might.

avelad pushed a commit that referenced this pull request Aug 15, 2023
When we exported `PeriodCombiner` in
#5324 we added an
`@export` to `PeriodCombiner.Period`, and since then we've been testing
in our dogfood builds using shaka-player.compiled.debug, because we like
to get logs from dogfood. Everything was working great.

When we went to switch over to the production build, we realized that
`@export` on a `typedef` doesn't really work because the type gets
minified internally!!

This moves `Period` over to `extern` so that it does not get minified
and can be used externally.
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Aug 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants