Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: CrAz3D on March 05, 2004, 10:32 AM

Title: Files, ListViews, Arrays
Post by: CrAz3D on March 05, 2004, 10:32 AM
Which is fastest & most efficent when checking for phrases to bna or words to filter?
Title: Re:Files, ListViews, Arrays
Post by: SNiFFeR on March 05, 2004, 12:18 PM
Arrays.  ;)
Title: Re:Files, ListViews, Arrays
Post by: Grok on March 05, 2004, 01:43 PM
I disagree.  An array will have to be searched entirely.

Keep thinking.  This is a common question and there are widely accepted methods for it.
Title: Re:Files, ListViews, Arrays
Post by: Adron on March 05, 2004, 02:07 PM
An array makes sense for phrases and similar that you need to InStr or Like for in the received text. A collection makes sense for things you can look up directly such as banned user names.
Title: Re:Files, ListViews, Arrays
Post by: Banana fanna fo fanna on March 05, 2004, 02:09 PM
btree
Title: Re:Files, ListViews, Arrays
Post by: Stealth on March 06, 2004, 12:47 AM
Do binary trees even make sense in Visual Basic?
Title: Re:Files, ListViews, Arrays
Post by: Adron on March 06, 2004, 05:54 AM
Collections might be binary trees, I don't know how they are implemented.