Mail Archives: djgpp/1999/10/20/11:42:51
On Wed, 20 Oct 1999, Hammy wrote:
> I have this structure as a linked list and have ordered it in
> active/disable, now, i can image this being rather slow the more events i
> have.
How many events could there be? For small amounts, linear search is just
fine.
Anyway, you should never try to optimize the code before you wrote it.
Once you get the program working, if it runs too slow, profile it and see
where it spends most of the time. More often than not, you will be
surprised by what the profiler shows. Which means that optimizing early
generally means you optimize in the wrong place.
- Raw text -