You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the following is tested on Debian unstable with i3ipc 2.2.1:
$ time python3 -c 'import json; import subprocess; data = json.loads(subprocess.check_output(["swaymsg", "-t", "get_tree"]))'
real 0m0.155s
user 0m0.137s
sys 0m0.016s
$ time python3 -c "import i3ipc; i3ipc.Connection().get_tree()"
real 0m0.333s
user 0m0.297s
sys 0m0.033s
I think this is a bug. Spawning a subprocess and parsing its output should not be faster than using a dedicated library to do the job. And it should definitely not be twice as fast as using the library.
The text was updated successfully, but these errors were encountered:
Hi,
the following is tested on Debian unstable with i3ipc 2.2.1:
I think this is a bug. Spawning a subprocess and parsing its output should not be faster than using a dedicated library to do the job. And it should definitely not be twice as fast as using the library.
The text was updated successfully, but these errors were encountered: