ParletteSoftware / chodewars

Space exploration remake of tradewars
1 stars 0 forks source link

Make _get_unique_port_name more efficient #23

Open matthew-parlette opened 11 years ago

matthew-parlette commented 11 years ago

For larger universes, it could take a long time for _get_unique_port_name to return a result with a lot of hits to the database. This should be somehow made more efficient.

A possible solution would be to move this to the Database class. I believe that any database implementation could determine a unique value more efficiently than the Game class is doing.