musicbrainz/picard — pull request #93 by JonnyJD (2013-04-12 15:44:46+00:00)
Title: PICARD-415 make disc lookup faster again

This fixes
http://tickets.musicbrainz.org/browse/PICARD-415

Starting with libdiscid 0.3.0 read() reads not only the TOC, but also ISRCs and the MCN.
Reading the TOC is no actual disc access, since the TOC is cached (by the system, not by libdiscid). So read() is now slower than it was using libdiscid 0.2.2.
(I measured 0,5 vs. 3 seconds)

Using read_sparse(), when available, fixes that "performance problem".

Linux is only affected starting with 0.3.1 (when linux isrc support was implemented).
Windows and Mac are currently not affected, since they use an internal libdiscid build, which is 0.2.1 for mac and 0.2.2 for Windows.