Comcast / mamba

Mamba is a Swift iOS, tvOS and macOS framework to parse, validate and write HTTP Live Streaming (HLS) data.
Apache License 2.0
180 stars 40 forks source link

The `playlistType` for a variant playlist should be cached and not calculated every time. #41

Closed dcoufal closed 5 years ago

dcoufal commented 5 years ago

Description

Right now, if you call playlistType for a playlist, the type is calculated every time from scratch. It's a small calculation, but it's not uncommon in Comcast code to call this a lot.

It should be cached. The cached value should clear if the playlist is edited.

Depends on https://github.com/Comcast/mamba/issues/5

Tasks

dcoufal commented 5 years ago

Addressed