gojuno / swarmer

Reactive tool to create and start multiple Android Emulators in parallel.
Apache License 2.0
203 stars 17 forks source link

Speed up emulator port allocation #46

Open jakob-grabner opened 6 years ago

jakob-grabner commented 6 years ago

Store a list of used ports so we don't need to wait for the emulator start command to finish before starting the next emulator.

artem-zinnatullin commented 6 years ago

What if we go the other way around?

We can find all ports for required amount of emulators upfront (yes there is a race possible until emulator actually allocates the port, but it's a bit more safe I guess)