c# - Searching for a string in many small text files on Windows Server 2012 R2 get slower and slower -


we need grep 500k of files around 736 bytes.

using findstr proved unworkable , cache memory drained away, creating many hard faults.

wrote c# program see progress. first time through read around 200k reasonably fast ~1-2 mins slowed down 3-7 second/10000.

clearing cache using rammap , running again got 40k , started slowing similar speed before.

looking memory when running c# version fast fine, 3gb left of 6gb, disk high not excessive. no hard faults occurring.

is there limitation hitting here causing this. have ran on different platform , os (window 7) , findstr completed within 55 seconds

thanks,


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -