there is another option: put the code you need to optimize in a standalone file, then right click on the file in the project tree and check "enable 'O' option". this will greatly improve performances (equivalent of the release mode) for the code in this specific file, without having to maintain another project for an external dll.