Python Forum
Want to increase performance of adb call
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Want to increase performance of adb call
#1
Hello, I'm in a middle of a project,in which I need to control a couple android devices, physical and emulated, and run some touches to them, all of them at the same time (or almost).

For do this, I'm using system calls to run windows cmd commands as:

command="adb -s {device1} shell input tap cordX cordY"
        subprocess.Popen("command")
        command="adb -s {device2} shell input tap cordX cordY"
        subprocess.Popen("command")
To do this I started by using subprocess.Popen, and os.system but the fastest one so far is os.popen(command).

Maybe there are faster ways of execute system calls.
In this thread I found that they run tests using fork(), execv(), waitpid(), and it was by far the fastest way.
How can I code it?

Does anyone have a faster way?

Thanks in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Increase the speed of a python loop over a pandas dataframe mcva 0 1,958 Jan-21-2022, 06:24 PM
Last Post: mcva
  How to increase the size of a png picture for the heatmap of the correlation? lulu43366 9 6,169 Oct-06-2021, 04:15 PM
Last Post: deanhystad
  Using SoX in Python to Increase mp3 Bitrate DRT 1 2,529 Jul-10-2021, 08:41 PM
Last Post: DRT
  Clicker count increase by 1 each time blakefindlay 1 8,502 Feb-03-2021, 03:50 PM
Last Post: deanhystad
  increase and decrease a slice value? KEYS 2 2,838 Nov-10-2020, 11:35 PM
Last Post: KEYS
  Increase Numbers forever and need reset? ATARI_LIVE 4 3,485 Oct-23-2020, 01:55 PM
Last Post: ATARI_LIVE
  How do I add an element to a dic and increase an existing value Kanashi 2 2,475 Nov-21-2019, 02:56 PM
Last Post: ThomasL
  performance kerzol81 1 2,401 Oct-07-2019, 10:19 AM
Last Post: buran
  How to increase the data size SriRajesh 3 4,882 Nov-10-2018, 04:29 PM
Last Post: ichabod801
  Matplotlib Colorbar Ticks (Increase number) BennyS 1 9,865 Apr-18-2018, 04:00 PM
Last Post: BennyS

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020