improve diff upload
Categories
(Conduit :: moz-phab, defect)
Tracking
(Not tracked)
People
(Reporter: tarek, Assigned: tarek)
Details
Attachments
(1 file)
This api https://github.com/tarekziade/review/blob/master/mozphab/diff.py#L203
upload files one by one, then the diff. This adds a lot of overhead calls. We should
- zip all files in a single tarball, along with the diff
- send that tarball
- make bigger chunks.
I guess we need to adapt the server-side conduit api?
(In reply to Tarek Ziadé (:tarek) from comment #0)
This api https://github.com/tarekziade/review/blob/master/mozphab/diff.py#L203
upload files one by one, then the diff. This adds a lot of overhead calls. We should
- zip all files in a single tarball, along with the diff
- send that tarball
- make bigger chunks.
I guess we need to adapt the server-side conduit api?
Be aware we don't own the server-side implementation; best we can do is request functionality from Phacility.
Assignee | ||
Comment 2•4 years ago
|
||
I see, I thought we owned the conduit
thing for some reason. I guess one "free" improvement would be to upload files in parallel using a pool of threads, when we have more than one file. I guess it's not the most common use case, but it will speed up things a little bit on big changes.
here's one possible implementation: https://github.com/tarekziade/review/commit/f362551d73d9f2b6b633f9a9217a56242b5ea04e
I can push a clean patch if you think it's worth it. lmk
Thanks - sounds like it's worth experimenting with threading.
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Description
•