Closed Bug 1671360 Opened 4 years ago Closed 4 years ago

improve diff upload

Categories

(Conduit :: moz-phab, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

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.

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

Flags: needinfo?(glob)

Thanks - sounds like it's worth experimenting with threading.

Flags: needinfo?(glob)
Assignee: nobody → tarek
Status: NEW → ASSIGNED

patch ready for your consideration

Flags: needinfo?(glob)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(glob)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: