[Tutor] Searching Sorted Lists

Alan G alan.gauld at freenet.co.uk
Sat Aug 20 00:26:30 CEST 2005

> The only list search function I know is List.Index(X), which is 
> pretty
> inefficient I reckon, especially hen the lists are likely to contain 
> 100's
> or 100's of members.

Have you tried it? How long is it taking?
I'd be very surprised if it there was a serious problem indexing
a list of even 1000 members.

Premature optimisation is a dangerous trap.

If you find you really have a problem then we can start to consider
the options!

Alan g

More information about the Tutor mailing list