How to parse a text file in C# and be io bound?

后端 未结 7 671
名媛妹妹
名媛妹妹 2020-12-03 19:01

It is known that if you read data from disc you are IO bound and you can process/parse the read data much faster than you can read it from disc.

But this common wis

7条回答
  •  暖寄归人
    2020-12-03 19:22

    I suspect caching is skewing the measurements you are making. The hard disk has RAM that it uses to cache recently accessed data, and so does the operating system.

    For a better test, you would need to reboot between tests. I suggest a complete power down to ensure the disk's RAM is also cleared.

提交回复
热议问题