Speeding up qubesctl commands

I have a plan:

  1. give whole bunch of ram to dom0
  2. set up a RAM drive
  3. create an lvm pool on it
  4. clone management template and appvm there
  5. configure them to be the default management template
  6. undo all this
  7. record 2-5 and 6 as two scripts

Something like this should work per this guide (excluding persistency parts, of course)

Qube preloading is a mistake.

p.s. 34 seconds is slow! Is this a storage or cpu bottleneck for you? My idea is useless if cpu is the limitation

p.p.s. I don’t like my plan no more, it permanently takes away significant chunk of memory from the system. It might be okay for people with a lot of memory though, especially if they run minimal templates. Qube preloading is fine.