Quote:
So what is the problem and how can I solve it
The problem is you should never release a debug build of your program (pardon the pun). Debug builds are intended for debugging, that is developers use them for understanding what's wrong in their code. Customers should always get the release builds.
Debug builds contain a lot of info intended to support debugging and are not expected to be performant.