git-pw icon indicating copy to clipboard operation
git-pw copied to clipboard

`git pw patch update` is too slow

Open andy-shev opened this issue 7 years ago • 2 comments
trafficstars

Rather the point to confirm than the bug.

Instance: patchwork.ozlabs.org Amount of patches: 15

% time git pw patch update --state superseded --archived yes $(seq 993588 993602)
...
real    0m44.679s
user    0m0.701s
sys     0m0.223s

Instance: patchwork.kernel.org Amount of patches: 13

% time tsocks pwclient update -a yes -s Superseded 9244263 9244267 9244279 9244281 9244285 9244293 9244303 9244309 9244311 9244319 9244321 9244327 9244335

real    0m12.203s
user    0m0.097s
sys     0m0.024s

andy-shev avatar Nov 14 '18 13:11 andy-shev

Just a side note: I have git pw and pwclient running on different machines, surprisingly the former is run on way much more powerful machine (44 cores server vs. 4 cores desktop).

andy-shev avatar Nov 14 '18 13:11 andy-shev

I suspect this is because the XML-RPC API allows for bulk updates, while the REST API does not support this. I need to think about how to do this from the server side. Perhaps allowing updates for series and bundles instead of patches would be a suitable workaround?

stephenfin avatar Dec 17 '18 11:12 stephenfin