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.
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.