git-pw
git-pw copied to clipboard
`git pw patch update` is too slow
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
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).
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?