in reply to Re^3: the sands of time(in search of an optimisation)
in thread the sands of time(in search of an optimisation)

The first step should be to find out if CPU or I/O is the bottleneck.

There's no point in optimizing CPU usage if the program is not blocking on CPU.

You can just look at the CPU usage, and if it's constant 100% during the program run, you know that it's worth improving.

If file I/O is the bottleneck you can try to experiment with different file systems, RAID, different hard discs etc.

  • Comment on Re^4: the sands of time(in search of an optimisation)

Replies are listed 'Best First'.
Re^5: the sands of time(in search of an optimisation)
by spx2 (Deacon) on Mar 09, 2008 at 17:26 UTC
    CPU usage goes to about 70-90%. the hardware used to test this is 2 x 900mhz , 1024ram.