OK i done some testing
running a type with 10,000 players and searching for player 9999 takes from 4 to 9 millisecs to complete a search for a Int ,and 19 to 37 millisecs for a string search ,on my machine (not compiled).
As this is way more players then the game will ever hold, I agree that a search through a type is the best way to go.
I just wish there was a way to directly access a type without searching . for example: TypePointer = (player\name$="john") - pointer stops at first matching type :)
running a type with 10,000 players and searching for player 9999 takes from 4 to 9 millisecs to complete a search for a Int ,and 19 to 37 millisecs for a string search ,on my machine (not compiled).
As this is way more players then the game will ever hold, I agree that a search through a type is the best way to go.
I just wish there was a way to directly access a type without searching . for example: TypePointer = (player\name$="john") - pointer stops at first matching type :)