Is there any performance difference between Debug and Release?
- by Lazlo
I'm using MySql Connector .NET to load an account and transfer it to the client.
This operation is rather intensive, considering the child elements of the account to load.
In Debug mode, it takes, at most, 1 second to load the account. The average would be 500ms.
In Release mode, it takes from 1 to 4 seconds to load the account. The average would be 1500ms.
Since there is no #if DEBUG directive or the like in my code, I'm wondering where the difference is coming from.
Is there a project build option I could change? Or does it have to do with MySql Connector .NET that would have different behaviors depending on the build mode?