tipu
tipu

Reputation: 9614

Understanding memory and cpu speed

Firstly, I am working on a windows xp 64 machine with 4gb ram and 2.29 ghz x4

I am indexing 220,000 lines of text that are more or less the same length. These are divided into 15 equally sized files. File 1/15 takes 1 minute to index. As the script indexes more files, it seems to take much longer with file 15/15 taking 40 minutes.

My understanding is that the more I put in memory, the faster the script is. The dictionary is indexed in a hash, so fetch operations should be O(1). I am not sure where the script would be hanging the CPU.

I have the script here.

Upvotes: 0

Views: 244

Answers (1)

pocketfullofcheese
pocketfullofcheese

Reputation: 8857

You can try to monitor your machine to see if you're running out of memory. If so, you may want to look for memory leaks in your code.

Upvotes: 1

Related Questions