I'm not familiar with Linux, sorry.
Another good idea is to try a profiler to find the bottlenecks in your code. Then you can start optimizing.
Type: Posts; User: Elysia
I'm not familiar with Linux, sorry.
Another good idea is to try a profiler to find the bottlenecks in your code. Then you can start optimizing.
As for the I/O, try using buffering approaches. Buffering can help a lot with file I/O. However, it would be platform specific.
And that indentation could use some work too. I found it mostly...