clearlinux / swupd-server

Software update server (deprecated)
Other
13 stars 17 forks source link

Parallelize manifest creation and remove deltas #21

Closed tmarcu closed 8 years ago

tmarcu commented 8 years ago

The code previously created all the bundle manifests and delta manifests synchronously in 1 thread. While this worked, it was not optimal considering the manifests can be created at the same time since they are unique. This patch creates a threadpool that processes each bundle manifest in its own thread. Delta manifest creation was removed from create_update because it can already be handled by our delta pack creation process, and it is a huge time-sink for create_update as it also runs single threaded.

Signed-off-by: Tudor Marcu tudor.marcu@intel.com

phmccarty commented 8 years ago

Looks good, will merge shortly.

phmccarty commented 8 years ago

I messed up the merge, so I ended up pushing the original revision of this patch, and added a followup patch with the diff to current.