Console.WriteLine slow

后端 未结 9 1583
天涯浪人
天涯浪人 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:47

    Just a little trick I use sometimes: If you remove focus from the Console window by opening another window over it, and leave it until it completes, it won't redraw the window until you refocus, speeding it up significantly. Just make sure you have the buffer set up high enough that you can scroll back through all of the output.

提交回复
热议问题