HydrogenAudio

CD-R and Audio Hardware => CUETools => Topic started by: hydrogenaudio0815 on 2019-01-15 10:08:07

Title: Use faster CRC16 algorithm to speed up encoding/decoding for CUETools possibel?
Post by: hydrogenaudio0815 on 2019-01-15 10:08:07
Hello,

first, thanks to the developers of the great CUETools and Enzo for the faster CRC patch.

Since the last CUETools version is out for quite a while, I have a question what you think about implementing a faster CRC16 algorithm?

I like to ask you developers, to have a look into those CRC patches:

https://hydrogenaud.io/index.php/topic,115900.0.html (https://hydrogenaud.io/index.php/topic,115900.0.html)

https://github.com/mattsta/crcspeed (https://github.com/mattsta/crcspeed)

https://github.com/xiph/flac/pull/57 (https://github.com/xiph/flac/pull/57)

https://github.com/xiph/ogg/pull/37 (https://github.com/xiph/ogg/pull/37)

I think, that would be a nice improvement.

Thank you in advance.

Greetings
Title: Re: Use faster CRC16 algorithm to speed up encoding/decoding for CUETools possibel?
Post by: enzo on 2019-01-16 10:15:43
Just had a quick look at the CUETools source and it should definitely be possible to speed up the CRC16 and CRC32 calculations using the same method I used for FLAC and Ogg.

Another question is how much this would affect overall speed of CUETools workflows (i.e. how much time is currently spent for CRC calculations vs. other things), but I guess it might be worthwhile.

Would be great if the CUETools developers could look into it.

@hydrogenaudio0815: Maybe you should open a feature request at https://github.com/gchudov/cuetools.net/issues. Your post might be overlooked easily here.
Title: Re: Use faster CRC16 algorithm to speed up encoding/decoding for CUETools possibel?
Post by: hydrogenaudio0815 on 2019-01-18 09:55:39
Hello Enzo,

thank you for reading and your advise.

Greetings