我遇到了一个有趣的问题。有一个目录树让呼叫T 现在在目录结构中有3个操作是允许 1. Add a file or another directory under some parent directory
2. Remove a file or another directory
3. Modify that is move a file/directory from one parent d
我试图衡量一些表现,但我偶然发现了一些我反对相信的反直觉结果。也就是说,查询Dictionary<DateTime>的速度是,在DEBUG模式下比在RELEASE模式下快。 显然,错误必须在我的测量程序 - 但在哪里?这是它: Dictionary<DateTime, int> d1 = new Dictionary<DateTime, int>();
// fill the di