Mamba is a Swift iOS, tvOS and macOS framework to parse, validate and write HTTP Live Streaming (HLS) data.
177
stars
37
forks
source link
Cache the `playlistType` for `VariantPlaylist`. Invalidate the cache when changes are made. #56
Closed
dcoufal closed 5 years ago
Description
This PR implements #41 .
The
playlistType
is now maintained by thePlaylistStructure
and theVariantPlaylist
just asks the structure for its value.The
PlaylistStructure
value is calculated when the structure is calculated. It's recalculated whenever tag changes are made.This should be a minor performance improvement for code that checks
playlistType
often.Change Notes
PlaylistTypeDetermination
part of the variant structure system.playlistType
in the variant structure system.playlistType
on init.playlistType
on both rebuild of the structure and on "changed".VariantPlaylist
now just defers to the variant structure on theplaylistType
value.Pre-submission Checklist