qubes-core-admin-client icon indicating copy to clipboard operation
qubes-core-admin-client copied to clipboard

Changes to speed up qvm-ls

Open qubesuser opened this issue 7 years ago • 1 comments

This is the client part of a bunch of changes that get qvm-ls to around 200ms run time.

Warning: I haven't tested them much, and they change fundamental code, so they probably need fixes.

In particular, all properties are now cached by default, so anything that expects to see changes is now broken and needs to be fixed.

This makes use of the new APIs introduced in QubesOS/qubes-core-admin#165, and also contains a bunch of optimizations of the Python code.

qubesuser avatar Nov 09 '17 19:11 qubesuser

I've cherry-picked two more commits from this:

  • don't lookup list of labels just to read VM properties 6eb828f
  • don't use ast.literal_eval, just directly convert to the desired type 10c4c2f

marmarek avatar Dec 05 '17 22:12 marmarek