Mail Archives: djgpp/1999/10/24/08:28:06
On Thu, 21 Oct 1999, Nate Eldredge wrote:
> Also, when you do have a performance problem, start by looking at your
> algorithm. In my YAMD malloc debugger, I once had a linear search for
> allocated blocks. This was very slow. I could have rewritten it in
> hand-tuned assembly, but it still wouldn't have helped very much.
The usual rule of thumb is that hand-coding in assembly could speed up
the code by a factor of 2 at the most. If you need more than that,
assembly is not worth trying; you need to change the algorithms.
- Raw text -