Why is IOCTL_CDROM_READ_TOC so slow?

Eric Pouech eric.pouech at wanadoo.fr
Wed Jan 29 14:14:11 CST 2003


Waldeck Schutzer wrote:
> I just realized that IOCTL_CDROM_READ_TOC is used almost everywhere in 
> mcicda and somewhere else, but on the other hand it is as fast as a 
> snail. A 68-track CD took 10 minutes to scan in cdplayer and if you 
> press play, another 10 minutes will pass before it even starts playing! 
> It appears to be a good idea to cache the TOC somewhere, but where and how?
how come you get those timings ?
even if we read 10 times more the TOC as we need (so 700 times), it 
means the toc reading on the CD takes 600s, so basically a second for a 
toc reading, which could occur when the CD rom is first inserted, 
otherwise it's crazy
questions: do you have some other apps accessing the cdrom (another 
playback app, automount...) ?

A+


-- 
Eric Pouech




More information about the wine-devel mailing list