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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -