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,312 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 3,498 Oct-06-2021, 04:15 PM
Last Post: deanhystad
  Using SoX in Python to Increase mp3 Bitrate DRT 1 1,746 Jul-10-2021, 08:41 PM
Last Post: DRT
  Clicker count increase by 1 each time blakefindlay 1 5,640 Feb-03-2021, 03:50 PM
Last Post: deanhystad
  increase and decrease a slice value? KEYS 2 2,087 Nov-10-2020, 11:35 PM
Last Post: KEYS
  Increase Numbers forever and need reset? ATARI_LIVE 4 2,320 Oct-23-2020, 01:55 PM
Last Post: ATARI_LIVE
  Performance enhancement fimmu 0 1,610 Feb-12-2020, 02:42 PM
Last Post: fimmu
  How do I add an element to a dic and increase an existing value Kanashi 2 1,850 Nov-21-2019, 02:56 PM
Last Post: ThomasL
  performance kerzol81 1 1,907 Oct-07-2019, 10:19 AM
Last Post: buran
  How I can do performance testing on my API a21250450 0 1,386 Jul-18-2019, 09:29 AM
Last Post: a21250450

Forum Jump:

User Panel Messages

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