Thread Optimization

Have a comment or suggestion? Leave your feedback here!

Thread Optimization

Postby SoranoGuardias » Mon Jan 23, 2012 7:55 pm

This program is nice. However, I must admit that using the included converter, while convenient, takes quite a while compared to my other software. The reason I use the included converter is because it completely strips out the embedded metadata that many services, such as iTunes includes. Other converters I have tried do not do that and, as a result, render the processed file unplayable.

Is there any way to setup the program so it has the capability to fully utilize the user-defined number of available cores? If not, how difficult would that implementation be?
Game DJ
Posts: 1
Joined: Mon Jan 23, 2012 7:51 pm

Re: Thread Optimization

Postby Renegade » Mon Jan 23, 2012 8:23 pm

HLDJ is using libmad and libsamplerate which I don't think are thread safe. Threading may be possible, but the more likely the reason you're seeing for the slower operation is that it's unbuffered. The HLDJ converter reads from the file instead of faster applications that probably first read the file into memory. This was done for simplicity and to reduce memory constraints. The HLDJ converter wasn't really designed to be top-of-the-line, but to be used in conjunction with audio editors or as a reference for properly converting files. Since it's open source though, any one is free to modify or improve it. It should be fairly easy to at least buffer the input into memory first, though threading would depend on if the libraries are threadsafe.
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm

Return to Comments & Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest