I am writing a small .NET Windows Forms application, and I use Visual Studio's built-in settings to control the configuration of my programs. However, I noticed that after I added the StringCollection parameter (to save a list of recently received documents), my program took a lot more time to run.
I started StopWatch to initialize the programs and found that even when StringCollection was called, the startup time from 100 milliseconds to 300 milliseconds took. I know, probably, that you will say that 200 milliseconds between friends ?, but it seems strange to me that something so simple can cause such a delay.
So my question is: why are you calling StringCollection from settings so slowly, and is there any way to avoid this delay?
source
share