Console.WriteLine slow

后端 未结 9 1582
天涯浪人
天涯浪人 2020-11-29 07:35

I run through millions of records and sometimes I have to debug using Console.WriteLine to see what is going on.

However, Console.WriteLine

9条回答
  •  隐瞒了意图╮
    2020-11-29 07:55

    If it is just for debugging purposes you should use Debug.WriteLine instead. This will most likely be a bit faster than using Console.WriteLine.

    Example

    Debug.WriteLine("There was an error processing the data.");
    

提交回复
热议问题