Map.mod

BlitzMax Forums/BlitzMax Programming/Map.mod

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can use maps rather like lists, except that they are much, much quicker to search.

For example, if you have a list of 1000 strings it would require up to 1000 tests to search the list for a particular string. Because of the way that maps store data, it would only take around 10 or so tests to find a particular string in a 1000 object map.