A C++ program that uses several DLLs and QT should be equipped with a malloc replacement (like tcmalloc) for performance problems that can be verified to be caused by Window
nedmalloc? also NB that smplayer uses a special patch to override malloc, which may be the direction you're headed in.