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

Make getFastToc() fast again #417

Merged
merged 2 commits into from
Oct 20, 2019
Merged

Conversation

mtdcr
Copy link
Contributor

@mtdcr mtdcr commented Oct 20, 2019

AFAICS, the fast TOC code-path served the following purposes:

  • Create IDs for MusicBrainz and CDDB lookup.
  • Use these IDs as an index into the TOC cache to quickly resume or restart unfinished rips.

Since #345 broke it, each rip ran the slow TOC code-path twice, resulting in needlessly slow rips and a useless caching mechanism.

This PR restores the previous behaviour.

The first commit just intends to make clear that data from the thorough TOC read is preferred over the data from fast TOC reads.

Please do not discuss whether slow TOC reads are useful here. It's a different issue. This is just a bug fix.

The data from itable may be more accurate, because ittoc comes from
getFastToc().

Signed-off-by: Andreas Oberritter <obi@saftware.de>
Broken since whipper-team#345 was merged.

Signed-off-by: Andreas Oberritter <obi@saftware.de>
@JoeLametta JoeLametta merged commit 3b2b732 into whipper-team:develop Oct 20, 2019
@JoeLametta
Copy link
Collaborator

Merged, thanks!

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